WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
15108
Wheel scrolling scrolls by too far in the GTK port
https://bugs.webkit.org/show_bug.cgi?id=15108
Summary
Wheel scrolling scrolls by too far in the GTK port
George Wright
Reported
2007-08-29 05:29:10 PDT
When scrolling with a mouse wheel the page scrolls by 4800 pixels which scrolls to either the very top of the page or the very bottom in most cases. This step needs to be smaller.
Attachments
Change scroll delta from 120 to 0.25
(1.66 KB, patch)
2007-10-20 14:44 PDT
,
Jasper Bryant-Greene
mjs
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
George Wright
Comment 1
2007-08-29 05:32:59 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.
Jasper Bryant-Greene
Comment 2
2007-10-20 14:44:34 PDT
Created
attachment 16746
[details]
Change scroll delta from 120 to 0.25 I've also moved the delta into a static const float at the start of the function.
Maciej Stachowiak
Comment 3
2007-10-20 15:59:58 PDT
Comment on
attachment 16746
[details]
Change scroll delta from 120 to 0.25 r=me
Mark Rowe (bdash)
Comment 4
2007-10-20 16:05:18 PDT
Landed in
r26835
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug