Closed Bug 658153 Opened 10 years ago Closed 10 years ago

At using high resolution scrolling, the mouse wheel transaction doesn't work fine

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla6

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

(Keywords: regression)

Attachments

(1 file)

Attached patch Patch v1.0Splinter Review
There are a couple of issues:

1. nsMouseWheelTransaction::OnEvent() doesn't handle NS_MOUSE_PIXEL_SCROLL as NS_MOUSE_SCROLL. Therefore, pixel scroll event doesn't cause to end transaction even if mouse cursor is moved. This isn't a problem for Windows high resolution scroll, but this is actually a bug.

2. nsMouseWheelTransaction::OnEvent() doesn't handle NS_QUERY_SCROLL_TARGET_INFO as its mouse scroll event. NS_QUERY_SCROLL_TARGET_INFO causes calling DoScrollText() for querying the information. At this time, DoScrollText() calls nsMouseWheelTransaction::UpdateTransaction() without the mouse move check in OnEvent(). Therefore, if high resolution scrolling is enabled, mouse move doesn't cause canceling the transaction. This is a regression of bug 605648.
Attachment #533525 - Flags: review?(Olli.Pettay)
Attachment #533525 - Flags: review?(Olli.Pettay) → review+
The patch needs the change for bug 657935. I'll land the patch with it.
Depends on: 657935
http://hg.mozilla.org/mozilla-central/rev/2b79cd3ba840
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.