microsoft / vscode

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

Horizontal scroll in editor doesn't work anymore #8919

Closed DasJott closed 7 years ago

DasJott commented 8 years ago

Steps to Reproduce:

  1. Have a mouse with possibility to scroll horizontal and be sure it works in other apps like Nautilus (Filemanager) or Chrome.
  2. Type so much text so that a horizontal scrollbar appears
  3. Try to scroll horizontal

That worked once. I have a Logitech T620.

alexdima commented 8 years ago

@DasJott I wonder if this is a Chromium issue, a few months ago we updated from Chromium 45 to Chromium 49, did you experience the same issue in Chrome?

alexdima commented 8 years ago

Do you also see the issue at https://microsoft.github.io/monaco-editor/ when visiting that page in Chrome?

DasJott commented 8 years ago

It works in Chrome and it also works on that page https://microsoft.github.io/monaco-editor/ within the editor.

The touchpad does work on horizontal scrolling though. Hm... it is just the mouse. Strange.

jflheureux commented 8 years ago

I have this issue too.

Version: 1.3.1 OS: Windows 8.1 Laptop: Lenovo T440p Pointing device: Trackpad

On https://microsoft.github.io/monaco-editor/ the editor scrolls as expected when I'm horizontally scrolling with the trackpad. In VSCode, the caret is moving left/right when I'm horizontally scrolling. I expect the editor to scroll instead.

alexdima commented 8 years ago

I can only believe it is a matter of time... until we adopt latest Chromium. We have the exact same code in dealing with mouse ops in both the monaco editor and in vscode. The only difference I can think of is that in vscode we're sitting on Chromium 49 and the stable Chrome version is already at 51

DasJott commented 7 years ago

Works for me now! Brilliant!