cletusc / Userscript--Twitch-Chat-Emotes

Adds a button to Twitch that allows you to "click-to-insert" an emote.
http://cletusc.github.io/Userscript--Twitch-Chat-Emotes/
MIT License
36 stars 20 forks source link

Re-enable middle-mouse compass scrolling on menu #76

Closed cletusc closed 9 years ago

cletusc commented 9 years ago

From http://cletusc.github.io/Userscript--Twitch-Chat-Emotes/#comment-1895391020

Feature Request: Please add center mouse click scrolling. My emote menu is very large and can be painful to scroll through.

This is related to https://github.com/mzubala/jquery-custom-scrollbar but I don't know how feasible this is to fix--marking low priority right now as I don't think this affects more than a small amount of users that are subbed to an obscene amount of people.

Izlsnizzt commented 9 years ago

Teak Suggested: Bind the mouse down event and use the scrolling API to change the scroll location.

cletusc commented 9 years ago

The problem with doing it that way is not all OSes bring up the scroll compass when middle clicking and instead try to paste (if possible).

cletusc commented 9 years ago

@Izlsnizzt, I will likely be switching to gromo/jquery.scrollbar instead of mzubala/jquery-custom-scrollbar as it actually supports this based on their demos.

It doesn't emulate scrolling like most plugins out there, it just hides the native scrollbar in favor of a custom one so all default scrolling behavior should persist. The only issue I see is that the custom scroll bar wouldn't be shown on non-webkit browsers on Mac, but I don't think it'd be too terrible.