I'm trying to add a listener to scrolling on a Famo.us Scrollview on mobile.
From what I can find, the scrollview's sync emits start
, update
and end
events. But in practice I'm finding that the end
event is fired on touchend
, not when the scrollview actually finishes scrolling given momentum. And update
is fired on touchmove
, again completely ignoring momentum.
How do I listen to actual scrolling?
At version
0.3.1 of Famo.us
there are four events you can use to keep track of some scrolling. Unfortunately, they are limited in what information you can get from them.Events:
They will fire based on the options of your scroll view, so you will need to test. Here is some code to test quickly.