Home » Questions » Computers [ Ask a new question ]

How to disable the middle button scrolling in Chrome

How to disable the middle button scrolling in Chrome

When I press middle mouse button, it opens:

Asked by: Guest | Views: 86
Total answers/comments: 2
Guest [Entry]

"Update 27 Jul 2020: It appears that the following extension is no longer in the Chrome Store. I still have it installed and it was not
removed. I'm looking into whether I can find out more info...
For those interested, the entirety of the source for the extension is as follows. This may also work as a Tampermonkey user script.
var target;

window.addEventListener('mousedown', function(mouseEvent) {
if(mouseEvent.button != 1)
return;
target = mouseEvent.target;

mouseEvent.preventDefault();
mouseEvent.stopPropagation();
}, true);

There's an extension named (incorrectly) ""No Smooth Scrolling"" which disables this:
chrome.google.com/webstore/detail/no-smooth-scrolling/oikddacoldignalphkgeppnpalkmkgbo"
Guest [Entry]

"Get the latest drivers for your mouse and see if you can reassign the wheel click to a macro through its settings.

It should be reassigned to: Middle-click [very short sleep] ESC

If you can't get drivers with this feature, I suggest you write a very simple script in Autohotkey to do the exact same thing.

It should look something like this:

#IfWinActive ahk_class Chrome_WidgetWin_1
MBUTTON::
Click Middle
Sleep 10
Sendinput {ESC}
Return"