microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.54k stars 29k forks source link

Respect the system setting for mouse scroll speed #112134

Open duzenko opened 3 years ago

duzenko commented 3 years ago
Version: 1.51.1 (system setup)
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:35:47.374Z (4 wks ago)
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT ia32 10.0.18363

Steps to Reproduce:

  1. Open the Windows system UI for mouse scroll speed image
  2. Set to minimum and note scroll speed in VS Code
  3. Set to maximum and note scroll speed in VS Code

Does this issue occur when all extensions are disabled?: Yes

vscodebot[bot] commented 3 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

duzenko commented 3 years ago

This is clearly a bug, probably with a simple fix too Burying it under thousands of open feature requests with 60 days of life? Great support

asos-alexwhite commented 2 years ago

Ironic that this bug was first identified in 2016 and it has been discussed since then in the issue which hediet mentioned above. Closing that old one as a ‘duplicate’ seems weird, but hey - if this got the magic number of votes to get it on a backlog that’s fine with me.

velialiev commented 1 year ago

Any updates? VSCode scroll still is not the same as in the OS

ldexterldesign commented 1 year ago

👋

This is obviously a bug

workbench.list.mouseWheelScrollSensitivity values take affect in the settings window but not in new text file windows 😕:

Screenshot 2023-04-28 at 02 14 41

If you're reading and:

Regards

ErikSwan commented 1 year ago

This is obviously a bug

workbench.list.mouseWheelScrollSensitivity values take affect in the settings window but not in new text file windows 😕:

That's because the workbench.list.mouseWheelScrollSensitivity setting does not apply to the editor views/tabs/windows. The setting you are looking for is editor.mouseWheelScrollSensitivity.

Likewise, it's worth noting that there is a third setting, terminal.integrated.mouseWheelScrollSensitivity, for the scroll sensitivity in the integrated terminal.

xiaojundebug commented 5 months ago

I observed that in the source code, they use WheelEvent.wheelDeltaY instead of deltaY, and I don't understand why they do this. I believe deltaY is the correct scroll distance.

https://github.com/microsoft/vscode/blob/f86d0f7324e0db0682cf8d49af73a98df4c420bd/src/vs/base/browser/mouseEvent.ts#L160