Edit this page

scroll

Fires when the user scrolls through the content.

Bind to scroller scroll event in view init

<div data-role="view" data-init="attachToScroller">
    <div style="height: 2000px">Foo</div>
</div>
 <script>
    function attachToScroller(e) {
      var scroller = e.view.scroller;
      scroller.bind("scroll", function(e) {
         console.log(e.scrollTop);
         console.log(e.scrollLeft);
      });
    }

    new kendo.mobile.Application();
 </script>

Event Data

e.scrollTop Number

The number of pixels that are hidden from view above the scrollable area.

e.scrollLeft Number

The number of pixels that are hidden from view to the left of the scrollable area.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy