Vscode: Smooth scrolling

Created on 23 Mar 2016  路  11Comments  路  Source: microsoft/vscode

The scrolling behavior is not smooth when you do it with the mouse wheel. It has been fixed in chromium 49 that comes since electron 0.37.x
So, could you update to the last version of electron?

  • VSCode Version: 0.10.12-insider
  • OS Version: Windows 10

I left a video showing the difference with electron 0.37.x

editor-core feature-request on-testplan

Most helpful comment

I think this is a good opportunity for a PR:

All 11 comments

I haven鈥檛 look at Chromium49 smooth scrolling yet, but it seems to me that this wouldn鈥檛 help VSCode scrolling that is managed using CSS transform3D and absolute positioning.

Well then, eliminate these approach and use the native scroll behavior in chromium >= 49.

Just tried out latest master: This is indeed not fixed in VSCode simply by updating to electron 0.37.5.

@mquandalle is correct, we own the scrolling from JS.

We need to distribute the scrolling from point X to point Y through multiple frames in our code. Definitely a nice thing to have.

...So, are we going to get smooth scrolling?

I think this is a good opportunity for a PR:

Why not using the CSS property "transition-duration" for that? Seems to work quite well at first glance - if the lines that get invisible wouldn't disappear before the transition-duration is over.
I am not sure how important smooth scrolling is when translate3d is not used (and thus transition-duration has no effect).

Is this issue still active?

@darkon5 I tried the latest master. Smooth scrolling seems to be working with the touchpad now (wohoo), but it still does not seem to work with the mouse wheel (tested on SP4 running Debian Stretch).

I submitted a pull request that should fix this.

untitled2

@JD342 HERO! <3

Was this page helpful?
0 / 5 - 0 ratings