famo.us - In famous-angular, is there access to scrollview.sync.on(event)? -


Now I have fa-pipe-from in it with scrolls from surfaces and works fine , And I have tried a few ways to listen to ScolveView events.

In a way, a fa-pipe-to in scrollview

  & lt; Fa-scroll-view was to add fa-pipe-to = "result wahidler" fa-pipe-to = "scrollviewhandler" & gt;   

point to event handler

  $ scope.scrollViewHandler = new event herediller ();   

but no event is coming from this handler

  $ scope.scrollViewHandler.on ("start", function (e) {console.log (e);}); // ever   

I have not seen in another stack overflow - - which suggests a solution that does not work:

  $ famous .find ('fa-scroll-view') [0] .renderNode.sync.on ('start', function (event) {console.log ('start');});   

Any suggestions on how to achieve this?

Edit: Obviously 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;   

and was able to hear such incidents:

  var scrollView = $ famous.find ('# footer-scrollview') [0] .renderNode, scrollViewHandler = scrollView.sync; scrollViewHandler.on ('start', function (event) {console.log ('start ');});   

' 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

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -