tumpio / gmscripts

tumpio's usercripts

Home Page:https://openuserjs.org/users/tumpio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Scroll Everywhere] Difficult to use; add instructions?

joeytwiddle opened this issue · 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!

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

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.

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.