Closed
Bug 1048178
Opened 10 years ago
Closed 10 years ago
Can't drag thumb after right click while scrolling
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: seleznev.ru, Assigned: seleznev.ru)
Details
Attachments
(2 files)
4.29 KB,
patch
|
mstange
:
review+
|
Details | Diff | Splinter Review |
3.79 KB,
patch
|
Details | Diff | Splinter Review |
I can reproduce it under Linux and MS Windows with `ui.scrollToClick`=0.
How to reproduce:
1. Open any good long page.
2. Put cursor on scrollbar (but not on the thumb). For ex, at the end of
scrollbar.
3. Press and hold left mouse button.
4. Do right click (on any place of the screen).
5. Release left mouse button.
6. Try to drag the thumb by left mouse button.
NOTE: Between 3 and 4 steps you can to move mouse.
Expected result:
- You can drag the thumb.
Actual result:
- Thumb has :active state but doesn't follow to mouse.
Assignee | ||
Comment 1•10 years ago
|
||
It works for me. Tested under GNU/Linux.
Changes:
1. Added nsSliderFrame::mDragFinished property. It should help to detect mouse
buttons clicks after starting scrolling. It's needed because
nsSliderFrame::isDraggingThumb() return false after every
NS_MOUSE_BUTTON_DOWN events. And as result, scrolling can be not stopped
completely.
2. Moved some code to nsSliderFrame::StopDrag() method.
I'm not check event type in following code because I'm not sure, that is
really required.
> if (!mDragFinished && !isDraggingThumb()) {
> StopDrag();
> return NS_OK;
> }
Assignee | ||
Comment 2•10 years ago
|
||
Comment on attachment 8466980 [details] [diff] [review]
fix-stop-scrolling-by-right-click.patch
I ask you review because you already reviewed 1-2 parts in bug 803633, and
this issue blocks bug 803633.
Sorry for noise in any case. :(
Attachment #8466980 -
Flags: review?(mstange)
Comment 4•10 years ago
|
||
Comment on attachment 8466980 [details] [diff] [review]
fix-stop-scrolling-by-right-click.patch
Review of attachment 8466980 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me.
Attachment #8466980 -
Flags: review?(mstange) → review+
Assignee | ||
Comment 5•10 years ago
|
||
+ toolkit/content/tests/chrome/test_bug1048178.xul
~ toolkit/content/tests/chrome/chrome.ini
Not sure that is really required.
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 6•10 years ago
|
||
Do you happen to have a Try link handy? If not, maybe Markus can help.
Assignee: nobody → seleznev.ru
Keywords: checkin-needed
Comment 7•10 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=69dac3a63e97
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c0109149eba1
https://hg.mozilla.org/mozilla-central/rev/7a7d3b7aaa05
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•