Comment 6 for bug 1694373

Revision history for this message
In , Carlos (csoriano) wrote :

Currently scroll on touchpad devices are managed like pointer
devices scrolling. But since most touchpad devices are smooth
scroll capables, they trigger a lot of scroll-event for each
little change with the fingers.
Also, interpolated events cause that the view keeps scrolling
after the user raise his hand.
For a discrete elements inside a scrollView like the appPicker
it is annoying, since it changes pages for each little change.
Also, although we guess how to solve that; it still changes pages
after the user raise his hand.

This patch fixes both drawbacks, first, holding the page change
while the animation of the page change is ongoing, which solves
the first drawback; and second, trying to avoid the events
triggered after the user raise his hand, using some heuristics with a
historic of the dy values of scroll and taking advantage of
that the values of smooth scrolling draw a curve, and we can
filter the values that are decreasing, which are the values
that are triggered after the user raise his hand.