Closed Bug 1048178 Opened 10 years ago Closed 10 years ago

Can't drag thumb after right click while scrolling

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: seleznev.ru, Assigned: seleznev.ru)

Details

Attachments

(2 files)

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.
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; > }
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)
It looks like bug 72776, but isn't "enhancement".
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+
Attached patch add-test.patchSplinter Review
+ toolkit/content/tests/chrome/test_bug1048178.xul ~ toolkit/content/tests/chrome/chrome.ini Not sure that is really required.
Keywords: checkin-needed
Do you happen to have a Try link handy? If not, maybe Markus can help.
Assignee: nobody → seleznev.ru
Keywords: checkin-needed
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
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.

Attachment

General

Created:
Updated:
Size: