Closed
Bug 657935
Opened 14 years ago
Closed 14 years ago
Should refer computed delta value at dispatching pixel scroll event
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
FIXED
mozilla6
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 file, 1 obsolete file)
14.08 KB,
patch
|
smaug
:
review+
jimm
:
review+
|
Details | Diff | Splinter Review |
If override mechanism of system settings for mouse wheel scroll is enabled (it's enabled on Windows in default settings), the delta value of a pixel scroll event for high resolution scrolling should be computed with the overridden delta value.
See https://wiki.mozilla.org/Gecko:Mouse_Wheel_Scrolling#Override_system_of_system_scroll_speed for the detail of the mechanism.
This patch sets computed delta value (i.e., overridden delta value) to the query event's reply. And nsWindow uses the computed delta when it computes delta value of a pixel scroll event.
This patch depends on the patch for bug 657634. It prevents high resolution scrolling when acceleration is enabled. The acceleration mechanism is stateful, therefore, the acceleration and high resolution scrolling cannot be enabled same time.
Attachment #533287 -
Flags: review?(Olli.Pettay)
Assignee | ||
Comment 1•14 years ago
|
||
I'm sorry for the mistake.
It's wrong to compute our delta value for test event. I must not use orienter without native delta value.
Attachment #533287 -
Attachment is obsolete: true
Attachment #533287 -
Flags: review?(Olli.Pettay)
Attachment #533523 -
Flags: review?(Olli.Pettay)
Comment 2•14 years ago
|
||
Comment on attachment 533523 [details] [diff] [review]
Patch v1.1
Jimm should probably look at at least the windows/ part.
Attachment #533523 -
Flags: review?(jmathies)
Attachment #533523 -
Flags: review?(Olli.Pettay)
Attachment #533523 -
Flags: review+
Comment 3•14 years ago
|
||
Comment on attachment 533523 [details] [diff] [review]
Patch v1.1
Review of attachment 533523 [details] [diff] [review]:
-----------------------------------------------------------------
::: widget/src/windows/nsWindow.cpp
@@ +6456,1 @@
>
nit - can we rename that var to something similar to mComputedScrollAmount since that's the value we use. I'm not a fan of 'scrollAmountPer*WHEEL_DELTA*|.
Attachment #533523 -
Flags: review?(jmathies) → review+
Assignee | ||
Comment 4•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•