famo.us - In famous-angular, is there access to scrollview.sync.on(event)? -
Now I have In a way, a point to event handler but no event is coming from this handler I have not seen in another stack overflow - - which suggests a solution that does not work: Any suggestions on how to achieve this? Edit: Obviously and was able to hear such incidents: ' Update 'and' End 'events also worked. I used elsewhere in App (W / a different ID) and another scrollview The use of the same tactics and it worked fine fa-pipe-from in it with scrolls from surfaces and works fine , And I have tried a few ways to listen to ScolveView events.
fa-pipe-to in scrollview
& lt; Fa-scroll-view was to add fa-pipe-to = "result wahidler" fa-pipe-to = "scrollviewhandler" & gt;
$ scope.scrollViewHandler = new event herediller ();
$ scope.scrollViewHandler.on ("start", function (e) {console.log (e);}); // ever
$ famous .find ('fa-scroll-view') [0] .renderNode.sync.on ('start', function (event) {console.log ('start');});
fa-pipe-to is working as expected, but scrollview does not emit all events The events are:
onEge, offEgege, settlement, pageChange and you can use ScrollView by pipe it to an empty event handler, as described above and listen to these events on it. These things that do not work:
start, update, end, resize and unfortunately I'm most needed.
& lt; fa-scroll-view id = "footer-scrollview" FA-pipe- From the "Footer Scroll Handler" & gt; & lt; / fa-scroll-view & gt;
var scrollView = $ famous.find ('# footer-scrollview') [0] .renderNode, scrollViewHandler = scrollView.sync; scrollViewHandler.on ('start', function (event) {console.log ('start ');});
Comments
Post a Comment