Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Smooth scrolling (Linux) #5359

Open
Open

Description

@oktayacikalin

I've seen some work in improving the smoothness of scrolling so far. But I'm wondering if it's actually possible to get real smooth scrolling or at least if it's planned for the near future?
Just reducing the scroll sensitivity to 1 line at a time is not a real solution...

Activity

  1. added
    linux
    on Feb 2, 2015
  2. benogle commented on Feb 2, 2015

    @benogle
    Contributor

    @nathansobo will be soon working on new rendering techniques that will hopefully speed up typing and scrolling performance, which should make things smoother.

  3. oktayacikalin commented on Feb 3, 2015

    @oktayacikalin
    Author
  4. alda30 commented on Jul 19, 2015

    @alda30
  5. Tenrys commented on Aug 11, 2015

    @Tenrys
  6. UltCombo commented on Nov 5, 2015

    @UltCombo

    Looks like @Tenrys's selector no longer works, so I've modified it:

    atom-text-editor::shadow .scroll-view > .lines > div > div:not(.cursor) {
      transition: -webkit-transform .1s linear;
    }

    This is still an ugly hack, and does not work very well when scrolling up.

    Chrome has a smooth scroll flag under chrome://flags/#enable-smooth-scrolling, I wonder if this flag can be enabled in Electron? If so, Atom could add a setting to enable this flag.

  7. ebkalderon commented on Nov 25, 2015

    @ebkalderon
  8. kuba-orlik commented on Nov 30, 2015

    @kuba-orlik
  9. thedaniel commented on Nov 30, 2015

    @thedaniel
    Contributor

    @zcbenz any comments on the Chrome smooth scroll flag and whether it's available / relevant in Electron?

  10. ArniPL commented on Mar 16, 2016

    @ArniPL
  11. alvarolm commented on Apr 8, 2016

    @alvarolm

    interested as well, btw that css hack doesnt seems to be working on 1.7 beta 5

  12. alvarolm commented on Apr 10, 2016

    @alvarolm
  13. kevinrambaud commented on May 2, 2016

    @kevinrambaud
  14. TheBrenny commented on Jun 15, 2016

    @TheBrenny

    @UltCombo, Getting that lovely MS Word feel when you include the cursor though!

    atom-text-editor::shadow {
      .scroll-view > .lines > div > div {
        transition: -webkit-transform 0.05s linear;
      }
    }
    
  15. 37 remaining items

  16. alexandernst commented on Oct 28, 2017

    @alexandernst

    @damianmoore You mention that this has been fixed with recent Linux distributions and touchpads, but does smooth scrolling work with regular mouses? IMHO that is what people are complaining about.

  17. Ben3eeE commented on Oct 28, 2017

    @Ben3eeE
    Contributor

    Smooth scrolling with a regular mouse doesn't work on Windows for me.

  18. damianmoore commented on Oct 28, 2017

    @damianmoore

    @alexandernst I was replying to @nathansobo which was about touchpads - "On macOS, that value varies based on my interaction with the touchpad". I can't say what happens with regular mice as I don't have one to test with (they give me wrist pain). I think there will always be complaints with regular mice not appearing smooth as there's lots of faking and animating to do when the wheel just doesn't have anywhere near the resolution. I was more interested in getting the continuous positioning stream of event data through to Atom so that the content moves according to your exact finger position.

  19. ssfrr commented on Oct 2, 2018

    @ssfrr

    I'm using Atom 1.32.0-beta1 on Linux and not seeing the precision scrolling behavior. As @damianmoore mentioned above this is a separate issue from "smooth" scrolling by adding animation between the discrete steps (and TBH it makes it confusing that these two things are conflated). It seems that the scroll window moves only in increments of about 2 lines. Is there some setting that needs to be enabled?

    I'm using Gnome Shell (Wayland).

  20. ariasuni commented on Dec 17, 2018

    @ariasuni
    Contributor

    Just to sum the situation up:

    When using a mouse wheel, the scrolling is not smooth: the view jumps immediately without animation, unlike settings or project view for example.

    (I personally don’t have any problem with pixel-perfect touchpad scrolling)

    If I understand correctly, it’s a matter of adding an animation but it’s not that simple because of the editor view performance tricks.

  21. ssfrr commented on Dec 17, 2018

    @ssfrr

    @ariasuni that's not the problem I'm having, but this issue seems to have a mix of smooth scrolling and precision scrolling, so I created a separate issue (#18592) to focus on precision scrolling.

  22. stale commented on Dec 17, 2019

    @stale

    Thanks for your contribution!

    This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:

    1. Verify that you can still reproduce the issue in the latest version of Atom
    2. Comment that the issue is still reproducible and include:
      • What version of Atom you reproduced the issue on
      • What OS and version you reproduced the issue on
      • What steps you followed to reproduce the issue

    Issues that are labeled as triaged will not be automatically marked as stale.

  23. AlexWayfer commented on Dec 17, 2019

    @AlexWayfer

    Verify that you can still reproduce the issue in the latest version of Atom

    Yes.

    What version of Atom you reproduced the issue on

    1.42.0

    What OS and version you reproduced the issue on

    Arch Linux.

    What steps you followed to reproduce the issue

    Scroll via mouse wheel.

  24. stale commented on Dec 25, 2020

    @stale

    Thanks for your contribution!

    This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:

    1. Verify that you can still reproduce the issue in the latest version of Atom
    2. Comment that the issue is still reproducible and include:
      • What version of Atom you reproduced the issue on
      • What OS and version you reproduced the issue on
      • What steps you followed to reproduce the issue

    Issues that are labeled as triaged will not be automatically marked as stale.

  25. AlexWayfer commented on Dec 25, 2020

    @AlexWayfer

    The same as earlier, Atom is 1.53.0 now.

  26. alerque commented on Apr 7, 2022

    @alerque

    I believe this issue is completely obsolete and can be closed. Smooth scrolling seems to work fine for me (about 10 increments per line). Using Xorg / Arch Linux packages (1.61.0beta0 and Electron 11).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementlinux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions