0

I'm using a paginated famous scrollview, and want to load some extra content when the user swipes to a new page. I can't see any callbacks or way to set this up.

I would expect to be able to do something like

myview.onChange = function(page) { // handle change }

additionally there's no way to query the current page that a scrollView is displaying?

info appreciated!

dcsan
  • 11,333
  • 15
  • 77
  • 118

1 Answers1

1

Simply listen for the 'pageChange' event (with paginated:true.)

scrollView.on('pageChange', function() {
        alert('change');
    });
rich
  • 196
  • 4
  • actually this doesn't seem to work for scrolling backwards, but otherwise yep. bug is documented. – dcsan Jul 01 '14 at 08:20