There is a solution using AutoHotKey posted on google groups:
Using Logitech Performance Mouse MX...
Downloaded AutoHotKey software
In the AutoHotkey.ahk
file, added these to do nothing for Cntrl+MouseWheelScrolling
^WheelDown::return
^WheelUp::return
I was dealing with this exact problem while trying to play this flash game on armorgames.com (yea, I know, Flash is decomming in 2 days. Please don't rub it in).
Basically, the game allows you to switch between weapons with the scroll wheel, but the webpage is so large that the browser scrollbar appears and the whole page scrolls up/down whenever you try using the scroll wheel to switch weapons.
Solution:
To fix this, I used a bookmarklet that runs some code to toggle the scrollbar 'off' when I'm playing the game. (After I'm done playing, I can run the same bookmarklet and it will turn the scrollbar back on).
javascript:(()=>{document.body.style.overflowY=document.body.style.overflowY===''?'hidden':''})();
Explanation:
The bookmarklet is using a ternary operator to toggle the hidden
property of the overflowY
attribute on the style of the <body>
tag element in the webpage's HTML.
document.body.style.overflowY = document.body.style.overflowY === '' ? 'hidden' : ''
If the overflowY
style is not set on the body
tag, it will set that style to hidden
. Otherwise, it will remove that style.
Usage:
Create a random bookmark, name it something like 'Toggle browser scrollbar', and then paste the entire line of code in the 'Solution' section above into the 'URL' box of the bookmark. Go to the webpage where you want to disable the browser scrollbar, scroll the browser to the position where you want it to freeze, and then click on the bookmarklet you created. (If you want the scrollbar to reappear, just click the same bookmarklet again)
Best Answer
I believe what you want is in 'Universal Access' in System Preferences. In the 'Mouse' tab there is a button that says 'Mouse Options', and the option to disable scrolling.
Apparently, which options are visible will change depending on the hardware, so that doesn't mean it will definitely be visible to you, but it's worth a try!