I use GestureDetector to implement scrolling inside a custom View . My implementation is based on the following: Smooth scrolling with inertia and edge resistance / snapback
I noticed a short pause before scrolling started: I looked at onScroll messages and noticed that the first one comes only after a larger finger movement, which causes a noticeable lag at the beginning of scrolling. After that, the scrolling is smooth.
It seems that the GestureDetector starts sending onScroll messages only after a minimum distance between moving events, to make sure that the gesture is not long or short-lived (btw I set setIsLongpressEnabled(false) ).
Is there a way to change this behavior and create a smooth scroll without implementing custom scroll gestures using low-touch events?
android scroll touch
hthms
source share