Open Bug 418618 Opened 16 years ago Updated 2 years ago

right click on the scrollbar to jump to

Categories

(Core :: XUL, enhancement)

enhancement

Tracking

()

People

(Reporter: yanivmailbox, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Build Identifier: Firefox 3 beta 3

today if the use right click on the scrollbar, nothing happens.

the idea:
- right click on the top arrow to go to the top of the page
- right click on the down arrow to go to the end of the page
- right click on the scrollbar  to go to "x" location

note:
* right click==only one short click to go to, with no scrolling effect
* there are no new buttons
* this is a good idea for all scrollbars

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Can't you already do this by middle-clicking?
1. most people don't like clicking on the middle button (it's not a convenient option)
2. it's work only on linux
3. you can't click on the arrows to go to the top or to the end of the page.
Severity: normal → enhancement
Summary: idea: right click on the scrollbar to jump to → right click on the scrollbar to jump to
This is actually pretty clever, and I'd like to see this implemented quite soon. As the rightclick on scrollbar still doesn't seem to have any function, why not?
Reporter, are you still seeing this issue with Firefox 3.6.12 or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Whiteboard: [CLOSEME 2010-12-01]
Hardware: x86 → All
Whiteboard: [CLOSEME 2010-12-01]
Version: unspecified → Trunk
Assignee: nobody → aem_koenraadt
Right-click functionality for moving scrollbar added. Right-click functionality for top and bottom arrows already present in nightly build.

Reviewer chosen from https://wiki.mozilla.org/Modules/Firefox, please reassign if needed.
Attachment #587762 - Flags: review?
Attachment #587762 - Flags: review? → review?(dietrich)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 587762 [details] [diff] [review]
Right click on scrollbar moves it to mouse position.

Thanks Diana!

I'm going to request code review from Neil Deakin, who might be a good person to review this change. If not, he can forward to the proper reviewer for this area of code.

I'm also going to request a UI review from our UX team so that we can their input on this change.
Attachment #587762 - Flags: review?(dietrich) → review?(enndeakin)
I'm not sure I like introducing custom behaviors to system widgets.

E.g. will this work on Mac with the Lion scrollbars?
Component: General → XUL
Product: Firefox → Core
QA Contact: general → xptoolkit.widgets
Comment on attachment 587762 [details] [diff] [review]
Right click on scrollbar moves it to mouse position.

Removing review request. Should get to agreement on whether this should be done or not before moving forward on the code part.
Attachment #587762 - Flags: review?(enndeakin)
Though I just implemented it because it seemed like a good beginner bug (code for middle mouse already existed), I do have some UI input myself: 

In the current version of Firefox, middle mouse click moves the scroll bar to the mouse position, BUT.. right mouse click on the top or bottom arrows moves the scroll bar all the way up or down. I'd expect these two pieces of functionality either both under the middle mouse button, or both under the right mouse button.
(In reply to Alex Limi (:limi) — Firefox UX Team from comment #7)
> I'm not sure I like introducing custom behaviors to system widgets.
> 
> E.g. will this work on Mac with the Lion scrollbars?

Phrased differently: right-click on a scroll bar should match existing platform conventions.

For example, on Window 7 a right-click in any native application's scroll bar gives a context menu with the options Scroll here / Top / Bottom / etc. On OS X 10.6, it does nothing (well, in Safari it treats the scroll bar as part of the page, and gives the normal context menu you'd get anywhere on the page... likely a bug).

So, for Windows and OS X we likely shouldn't make this change.

However -- I remember that some Unix desktops _do_ use right-click on a scrollbar to jump to that position. I don't have a Ubuntu box handy, but if Gnome/KDE/etc still support this interaction we should do this too (but enable it only on such platforms).
(In reply to Justin Dolske [:Dolske] from comment #10) 
> For example, on Window 7 a right-click in any native application's scroll
> bar gives a context menu with the options Scroll here / Top / Bottom / etc.
> On OS X 10.6, it does nothing (well, in Safari it treats the scroll bar as
> part of the page, and gives the normal context menu you'd get anywhere on
> the page... likely a bug).

But why is firefox not displaying this context menu?

I think it would be useful if we have that context menu in firefox too.

The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.

Assignee: diana → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: