Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
joeytwiddle opened this issue May 4, 2018 · 3 comments
Open

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

joeytwiddle opened this issue May 4, 2018 · 3 comments

Comments

@joeytwiddle
Copy link
Contributor

joeytwiddle commented May 4, 2018

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
Copy link
Owner

tumpio commented May 9, 2018

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

@joeytwiddle
Copy link
Contributor Author

joeytwiddle commented May 13, 2018

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
Copy link
Contributor Author

joeytwiddle commented Jan 30, 2019

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants