Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey it's me again, with a new feature! No problem if you don't want to merge this. But I'm pleased with it, so I wanted to share.
I found right-click problematic on Linux due to the context menu, and middle-click problematic for security, because it kept pasting my clipboard into random websites!
So I thought of an alternative:
I have not change this script's default behaviour. To try the new feature, set:
startAfterLongPress = true
andmouseBtn = 1
You can also try this feature, already enabled, in my fork: Scroll Everywhere [fork] by joeywwiddle - Greasy Fork
Additional:
Details: I added a little code to mute
click
events if we have just done some scrolling. (But at this time,mouseup
events are not muted, and mutingmousedown
events is probably impossible, since we don't know at that time whether the mousedown is intended for our scroller or for something else.)Because this feature is intended for (but not limited to) the left mouse button, but that button is used for lots of other things, there may be some edge-cases to deal with.
Please leave me a couple of weeks to iron them all out...!