iscroll
iscroll copied to clipboard
No scroll events fired when using keybindings
We're using iscroll-probe
with the probeType
set to 3
meaning that a scroll event is fired whenever the slider is moved.
However, activating the handy keybindings
option and moving the slider via keyboard doesn't emit any events whatsoever.
What's happening is: scrollTo
is called with time = 0
. That's why the if
-condition is true leading to _translate
being executed instead of _animate
. _animate
would emit events. _translate
doesn't.
https://github.com/cubiq/iscroll/blob/60ed6f8029b2e097a87399a2b3c688afd596980f/build/iscroll-probe.js#L861-L875
I created https://github.com/cubiq/iscroll/pull/1218 to solve that problem.