-
Ah, ok!
So I guess you already found the code for E.showScroller. On line #23 and onward the function for handling drag events is coded.
You can read about the drag event in the hardware reference.
So using
e.b
in the drag function insetUI
you can see if the screen is touched or not. With that ande.dy
I think you should be able to initiate the smooth scrolling behavior you describe when the finger is lifted from the screen.This tutorial is useful, and here is an example where I modified E.showScroller to work in discrete steps.
You know how on phones scrolling has easing and keeps going at your velocity once you stop, and also has a bounce back if you scroll too high? I was trying to implement that.