Closed
Bug 658155
Opened 15 years ago
Closed 15 years ago
High resolution scrolling should be enabled even when scrolling speed is customized by prefs
Categories
(Core :: DOM: UI Events & Focus Handling, enhancement)
Tracking
()
RESOLVED
FIXED
mozilla8
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 file, 2 obsolete files)
|
16.17 KB,
patch
|
jimm
:
review+
smaug
:
review+
|
Details | Diff | Splinter Review |
This is a follow up bug for bug 657634.
We should return the computed delta value to nsWindow. And nsWindow should prefer it at dispatching pixel scroll event.
This shouldn't block bug 658111. This is actually a new feature.
| Assignee | ||
Comment 1•15 years ago
|
||
This makes high resolution scrolling can be used with user customized scrolling speed.
This returns the computed scroll amount with its unit. nsWindow computes the pixel scroll event delta value with the information.
This is riskier than other patches because this changed the main logic in nsWindow::OnMouseWheel() and this feature isn't used by most users. So, I think this should be landed for Fx7.
| Assignee | ||
Comment 2•15 years ago
|
||
Attachment #533610 -
Attachment is obsolete: true
Comment 3•15 years ago
|
||
Masayuki, is this feature going to be able to get reviewed and landed before next Tuesday? It would be nice to have this along with the other pixel scrolling changes in Firefox 7. Also, will pixel scrolling be on or off by default in 7?
| Assignee | ||
Comment 4•15 years ago
|
||
This patch also returns computed scroll action to widget. E.g., if user customized wheel scroll action without any modifier keys from line scrolling to page scrolling, the pixel event delta value would be computed from page width/height.
Asa: I'm sorry I forgot to request review this. However, I don't think this should go to Fx7 at this timing. This is a little risky. If you wanted that and this patch passed reviews quickly, I would try to land this.
Attachment #534274 -
Attachment is obsolete: true
Attachment #543554 -
Flags: review?(jmathies)
Attachment #543554 -
Flags: review?(Olli.Pettay)
Comment 5•15 years ago
|
||
Comment on attachment 543554 [details] [diff] [review]
Patch v1.0.2
So in which case is sQueryContentEvent::SCROLL_ACTION_NONE used?
And how does that affect to scrolling and to dispatched events?
| Assignee | ||
Comment 6•15 years ago
|
||
(In reply to comment #5)
> Comment on attachment 543554 [details] [diff] [review] [review]
> Patch v1.0.2
>
> So in which case is sQueryContentEvent::SCROLL_ACTION_NONE used?
Currently, it shouldn't be used because DoScrollText() is called for query only when the action is line scroll or page scroll. SCROLL_ACTION_NONE means illegal case actually.
> And how does that affect to scrolling and to dispatched events?
Good point, currently, we don't dispatch pixel event from nsWindow if user customized the prefs because the query event failed always. So, the delta value should be same as computed value of SendLineScrollEvent() in most cases. However, SendLineScrollEvent() computes the delta value with event target but nsWindow computes it with actual scroll target. So, the delta value might be different. The root cause of this difference is that we need to compute the count of pixels with logical unit (line/page) and the scroll target may be different by wheel scroll transaction. I think that we cannot fix this issue now because we need to implement DOM3 wheel event and drop our strange wheel events.
Comment 7•15 years ago
|
||
Our wheel events are quite close to DOM 3 wheel events ;)
Comment 8•15 years ago
|
||
Comment on attachment 543554 [details] [diff] [review]
Patch v1.0.2
>+ // Don't modify the test event which in in mInput.
"in in"?
>+ nsMouseScrollEvent msEvent(*aEvent->mInput.mMouseScrollEvent);
This is a bit wrong. In practice it should work here, but if someone
happens to set .target or .relatedTarget or something, the addref/release
of those values break. The object will be released too many times.
So I think you should manually copy the necessary member
variables from aEvent to msEvent.
With that fixed, r=me
Attachment #543554 -
Flags: review?(Olli.Pettay) → review+
Updated•15 years ago
|
Attachment #543554 -
Flags: review?(jmathies) → review+
| Assignee | ||
Comment 9•15 years ago
|
||
Status: NEW → ASSIGNED
Whiteboard: [inbound]
Comment 10•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → mozilla8
Updated•7 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
•