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.

scrolling behavior while mouse-selecting whole lines of text is hard to control #6675

Closed

Description

@ntuckerxx

Atom v.0.196.0
Mac OS X 10.10.3

Trying to select text that spans more than just the visible scroll region is much more difficult in Atom than in other editors when selecting entire lines because of the auto-scrolling behavior. When you stretch a selection past the edge of the scroll region, the editor scrolls to accommodate you, but once you overshoot your destination, pulling back starts scrolling back in the other direction even though it's not necessary. Most other editors will only scroll when necessary.

Steps:

  1. open a file that is at least twice as long as what you can display in your window
  2. make sure you're scrolled to the top
  3. triple-click and hold somewhere to begin selecting entire lines
  4. drag down just past the bottom of the window, causing the window to scroll
  5. once you've scrolled all the way to the bottom (it's important here that you scroll at least past the point where the top of the selection scrolls out of the window), pretend you overshot the bottom of what you wanted selected by a few lines and you actually want the selection to end at the 10th line from the bottom of the file. continue to hold the mouse button down while you move your mouse back up to that line.
  6. observe that if you move your mouse up past about the 4th line from the bottom of the window, it actually starts scrolling back up and will keep going until the top of your selection is visible. This makes it difficult to get the selection to stop on a specific line because you have to time the scrolling to get your target line within 4 lines of the bottom of the window.

Expected: after mouse movement downward causes a scroll, moving the mouse back up into the window should not cause scrolling back in the other direction unless you attempt to move the end of the selection past the top of the visible part of the file.

Activity

  1. WoodyWoodsta commented on Jul 2, 2015

    @WoodyWoodsta

    I'm having this issue on Atom 1.0.0 (Windows 8.1). Referenced issue #6722 is not the same bug. It's a possible spinoff, but a different symptom. This particular bug prevents one from selecting code that is more than a page/screen long.

  2. nathansobo commented on Jul 28, 2015

    @nathansobo
    Contributor

    This will be fixed in 1.0.4.

  3. lock commented on Jan 21, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  4. locked as resolved and limited conversation to collaborators on Jan 21, 2019
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions