Closed
Bug 1141728
Opened 9 years ago
Closed 9 years ago
APZ computes wheel scroll deltas from the wrong event values
Categories
(Core :: Panning and Zooming, defect)
Core
Panning and Zooming
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: dvander, Assigned: dvander)
References
Details
Attachments
(2 files, 2 obsolete files)
3.12 KB,
patch
|
Details | Diff | Splinter Review | |
3.47 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
APZ currently multiples the line/page delta by the line scroll size. It should be multiplying the raw delta by the line scroll size instead.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8575533 -
Flags: review?(bugmail.mozilla)
Assignee | ||
Comment 2•9 years ago
|
||
Comment on attachment 8575533 [details] [diff] [review] fix This doesn't quite work right.
Attachment #8575533 -
Flags: review?(bugmail.mozilla)
Assignee | ||
Comment 3•9 years ago
|
||
This version inlines the relevant logic from WheelTransaction::AccelerateWheelDelta - grabbing the widget's scroll delta override. We skip the root scrollframe check since APZ has to do that part. Everything else in the WheelTransaction/ESM path we can ignore since it's accumulating scroll speed, which APZ has to handle itself.
Attachment #8575533 -
Attachment is obsolete: true
Attachment #8575620 -
Flags: review?(bugmail.mozilla)
Comment 4•9 years ago
|
||
Not a huge fan of this, let me think about it a bit.
Comment 5•9 years ago
|
||
Comment on attachment 8575620 [details] [diff] [review] better fix Review of attachment 8575620 [details] [diff] [review]: ----------------------------------------------------------------- Clearing review as per IRC discussion, we'll just bail out to main-thread handling of the wheel event instead if these prefs are set.
Attachment #8575620 -
Flags: review?(bugmail.mozilla)
Comment 6•9 years ago
|
||
If it turns out that at some point in the future we do need to route this through the APZ then I would rather have it structured like the attached patch (just an outline, I didn't compile it).
Assignee | ||
Comment 7•9 years ago
|
||
Attachment #8575620 -
Attachment is obsolete: true
Attachment #8576175 -
Flags: review?(bugmail.mozilla)
Comment 8•9 years ago
|
||
Comment on attachment 8576175 [details] [diff] [review] fix Review of attachment 8576175 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/layers/apz/src/APZCTreeManager.cpp @@ +830,5 @@ > return result; > } > > +// Note: currently, wheel events may only be sent to APZ if the controller > +// thread is the main thread. Remove this comment. WidgetWheelEvent is main-thread only so this is already implicit; if you want to explicitly state it then you can add an assertion but I don't think it's necessary.
Attachment #8576175 -
Flags: review?(bugmail.mozilla) → review+
Assignee | ||
Comment 9•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/abd759f41a6d w/ comment addressed
Comment 10•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/abd759f41a6d
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•