1. #1
    Ext User
    Join Date
    Oct 2008
    Posts
    195
    Vote Rating
    0
    aj3423 is on a distinguished road

      0  

    Default synchronize the scroll percent on locked and unlocked part

    synchronize the scroll percent on locked and unlocked part


    try the locking grid demo, the grid won't scroll when mouse wheel in the locking side.
    is it possible for the locking part receive mouse wheel event and make grid scroll?
    i tried
    grid.view.on('mousewheel', function() {
    console.info(arguments);
    });

    it works, but i couldn't find 'mousewheel' event in API, is it a hidden event? i'm using Ext3.2.0, and the arguments seems useless, the wheel direction could be found: e.getSrollDelta(), but not much information about scroll position.

    anyway to scroll the grid on mousewheel?

    Thanks.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    You can't attach a mousewheel event to the view, but you could attach it to grid.getView().lockedScroller.

    Also, there is no getSrollDelta method in EventObject, you are looking for e.getWheelDelta().

  3. #3
    Ext User
    Join Date
    Oct 2008
    Posts
    195
    Vote Rating
    0
    aj3423 is on a distinguished road

      0  

    Default


    this is piece of my code:
    Code:
    this.lockedScroller.on("mousewheel", this.handleWheel, this);
    
    handleWheel: function(e) {
    		// console.info(e);
    		console.info(e.getWheelDelta());
    	},
    the value of e.getWheelDelta() is either 1 or -1, it just indicates the direction? but how many pixel should be scrolled?

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Mousewheel events don't count in pixels. They count in scrollwheel 'stops' and the OS interprets this as an amount of pixels to scroll (but you don't have access to that value in the browser).

Similar Threads

  1. Replies: 5
    Last Post: 23 Feb 2010, 7:21 PM
  2. Replies: 1
    Last Post: 23 Jul 2007, 12:32 PM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi