gmscripts icon indicating copy to clipboard operation
gmscripts copied to clipboard

[Scroll Everywhere] Difficult to use; add instructions?

Open joeytwiddle opened this issue 7 years ago • 3 comments

I installed this a week ago but didn't work out how to use it until today!

In Chrome I find I have to click and hold right-click, and then after a moment, click and hold left-click, and then I can drag to scroll.

I'm not too bothered by the quirkiness, I just think a little guide on the OpenUserJS page could help users get started with it!

joeytwiddle avatar May 04 '18 18:05 joeytwiddle

Sounds odd. Are you using Windows or some other OS? Haven't used this for a long time.

tumpio avatar May 09 '18 16:05 tumpio

I'm using Google Chrome under Linux (Fluxbox on Ubuntu 14.04 and KDE5 on Manjaro)

When I right-click, the browser's context window pops up, but here is a workaround:

After right-click, keep holding it down, and then click and hold the left button as well. That will make the context menu disappear, and then scrolling will happen.

I am surprised you don't get the same behaviour. Does your context menu not appear when you right-click?

Or perhaps you are using Firefox. In Firefox, the context menu also appears, but moving the mouse will scroll without any extra clicks.

joeytwiddle avatar May 13 '18 16:05 joeytwiddle

This will prevent the context menu from appearing, so scrolling will immediately work with right-click-drag on Chrome:

window.addEventListener('contextmenu', function(e){ e.preventDefault(); });

But I don't think that's a good solution. People will want to use the context menu sometimes!

So my eventual solution was to use the middle mouse button, by setting mouseBtn = 2 in the script.


Edit: I also found another workaround was to right-click once to bring up the context menu, the right-click-drag on the page, to start scrolling.

joeytwiddle avatar Jan 30 '19 15:01 joeytwiddle