Results 1 to 2 of 2

Thread: list onscroll listener

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    81
    Vote Rating
    0
      0  

    Question list onscroll listener

    is there any listener associated with list onscroll ?

  2. #2
    Sencha User AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Location
    Italy
    Posts
    1,395
    Vote Rating
    22
      0  

    Default

    Hi babar,
    you can manage the list scrolling handler with event delegation.
    Simply add this listener to your list

    Code:
    ...
    listeners: {
       scroller: {
           scroll: function(scroller, offset){
    	   console.info(offset);
    	}
        }
    }
    ...
    The event returns you even the offset.x and offset.y so you know how much the list has scrolled.

    Hope this helps.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


Similar Threads

  1. on scroll listener in list or data view
    By babar.sajjad in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 5 Dec 2011, 2:34 PM
  2. Listener on a List when item is selected
    By ldm314 in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 9 Dec 2010, 4:49 PM
  3. Override Onscroll
    By hitman01 in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 27 Nov 2010, 7:46 AM
  4. Adding Listener to the List component failed, is it a bug ?
    By Eugene Krivopaltsev in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 26 Oct 2010, 3:07 PM
  5. List of Listener Events
    By Preston85 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 8 Jan 2010, 2:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •