tumpio / gmscripts

tumpio's usercripts
https://openuserjs.org/users/tumpio
MIT License
61 stars 28 forks source link

[Scroll Everywhere] Difficult to use; add instructions? #14

Open joeytwiddle opened 6 years ago

joeytwiddle commented 6 years ago

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!

tumpio commented 6 years ago

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

joeytwiddle commented 6 years ago

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 commented 5 years ago

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.