-
In some cases we may get event with very low delta at the end of the swipe. While we can't completely ignore them, we can smooth them using a scroll history, similarly to what GTK kinetic scrolling does: keep track of the last 150ms of events, and sum their deltas when calculating the velocity.
689b8734