vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Add option for disabling middle mouse button scroll-lock

Open SetTrend opened this issue 6 months ago • 0 comments

Synopsis

With pull request #245882, the middle mouse button scrolling feature has been added to VS Code.

The middle mouse button scrolling feature has been implemented like this:

  1. clicking the middle button enables scrolling on mouse move
  2. clicking the middle button again ends scrolling.

This two stage process is called "scroll lock" (or "click lock" on Windows).

Desired Situation

Scroll lock is particularly annoying for impaired or left-handed people who accidentally hit the middle mouse button frequently instead of the left mouse button.

Proposal

Please add a Boolean setting to VS Code to optionally disable scroll lock, i.e., with this option set to false, scrolling should only occur while the middle mouse button is held down and end when the middle mouse button is released.

SetTrend avatar Jun 16 '25 14:06 SetTrend