[Webkit-unassigned] [Bug 15108] Wheel scrolling scrolls by too far in the GTK port

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 29 05:32:59 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=15108





------- Comment #1 from george.wright at collabora.co.uk  2007-08-29 05:32 PDT -------
A look at WheelEventGdk.cpp and comparing it with WheelEventQt.cpp shows that
deltaX and deltaY for the PlatformWheelEvent are being hard coded to 120 in the
GTK port and are being set to some multiple or fraction of 15 degrees in the Qt
port (Qt reports the wheel scroll event as the number of degrees the mouse
wheel has rotated through, in eighths of a degree, and WheelEventQt.cpp divides
this value by 120 - http://doc.trolltech.com/4.3/qwheelevent.html#delta).

When calling scrollBy(), this delta is multiplied by LINE_STEP which is
hardcoded at 40 to give 4800 in the case of GTK.

Therefore I propose we hardcode deltaX/deltaY to something more sane in GTK
like 0.25 instead of 120.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list