-
23 Dec 2010 12:00 AM #1
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.
-
23 Dec 2010 12:41 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
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().
-
23 Dec 2010 12:48 AM #3
this is piece of my code:
the value of e.getWheelDelta() is either 1 or -1, it just indicates the direction? but how many pixel should be scrolled?Code:this.lockedScroller.on("mousewheel", this.handleWheel, this); handleWheel: function(e) { // console.info(e); console.info(e.getWheelDelta()); },
-
23 Dec 2010 1:13 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
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
-
[FIXED-558] LockingGridView breaks if no unlocked columns exist
By mankz in forum Ext 3.x: BugsReplies: 5Last Post: 23 Feb 2010, 7:21 PM -
My Fix To Some Scroll Bugs With Locked Columns in a Grid
By mike000 in forum Ext 1.x: BugsReplies: 1Last Post: 23 Jul 2007, 12:32 PM


Reply With Quote