microsoft / monaco-editor

A browser based code editor
https://microsoft.github.io/monaco-editor/
MIT License
40.21k stars 3.58k forks source link

[Bug] Scroll speed is now way faster on macOS & Chromium #3516

Open netique opened 1 year ago

netique commented 1 year ago

Reproducible in vscode.dev or in VS Code Desktop?

Reproducible in the monaco editor playground?

Monaco Editor Playground Code

Replicable with any content.

Reproduction Steps

  1. Open the playground (or VS Code) in Chrome/Chromium (version 99 or later) on macOS machine (tested on Ventura).
  2. Scroll in the playground and compare it with any other website (I don't know how to emulate the scroll event at the same pace programmatically, but the difference is so huge anybody can spot it).

Actual (Problematic) Behavior

The scroll speed is super-fast, to the point of not being usable at all. In VS Code, you have to lower the sensitivity quite a bit to compensate, but maybe the precision is compromised then.

Expected Behavior

The scroll speed should match that of the rest of the browser/system/Electron app with the default setting.

Additional Context

The issue was opened at https://github.com/microsoft/vscode/issues/146403, but the Monaco editor is the likely culprit. Note that the change in behavior may be caused by some Chromium changes on macOS, as the pre-99 releases work fine.

Prinzhorn commented 1 year ago

The issue was opened at microsoft/vscode#146403, but the Monaco editor is the likely culprit.

According to the issue you've linked this is a bug/change in Chromium https://github.com/microsoft/vscode/issues/146403#issuecomment-1372142016 https://bugs.chromium.org/p/chromium/issues/detail?id=1404833