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.

Not autoscrolling on undo when selection does not change #2158

Closed

Description

@colllin

When I undo or redo something, could atom please scroll to the place where the undo/redo actions are having an effect?

I don't know if this is an intermittent or constant issue... if it's intermittent, one way to reproduce is to refresh your editor (ctrl+option+cmd+L) then try to undo a few things and it keeps me - no, forces me - to the top of the file.

Activity

  1. izuzak commented on Jun 23, 2014

    @izuzak
    Contributor

    @colllin Sorry for the delay in getting back to you on this.

    I'm having trouble reproducing this in the latest version of Atom -- Atom always scrolls to where undoing/redoing is happening.

    I was wondering if you could upgrade to the latest version and let us know if you can still reproduce this? If you can, can you reproduce this if you start Atom in safe mode?

  2. colllin commented on Jun 27, 2014

    @colllin
    ContributorAuthor

    Updated to v0.106 and it seems better. Thank you Ivan.

    I was able to reproduce it though:

    • Near the top of the file, press cmd+L twice to select two lines
    • Press cmd+shift+} to increase indent
    • Press cmd+down to reach the bottom of the file
    • Press cmd+z / cmd+shift+z alternately and notice that you can't see what
      you're doing

    On Mon, Jun 23, 2014 at 2:50 AM, Ivan Žužak [email protected]
    wrote:

    @colllin https://github.com/colllin Sorry for the delay in getting back
    to you on this.

    I'm having trouble reproducing this in the latest version of Atom
    https://github.com/atom/atom/blob/master/docs/debugging.md#update-to-the-latest-version
    -- Atom always scrolls to where undoing/redoing is happening.

    I was wondering if you could upgrade to the latest version and let us know
    if you can still reproduce this? If you can, can you reproduce this if you
    start Atom in safe mode
    https://github.com/atom/atom/blob/master/docs/debugging.md#check-if-the-problem-shows-up-in-safe-mode
    ?

    —
    Reply to this email directly or view it on GitHub
    #2158 (comment).

  3. izuzak commented on Jun 27, 2014

    @izuzak
    Contributor

    Thanks for the detailed instructions, @colllin -- I can reproduce this behavior now, both in the current editor and the react editor.

  4. izuzak commented on Jul 8, 2014

    @izuzak
    Contributor

    @nathansobo I was hoping this issue would be fixed by #2815, but it seems that it isn't. I can still reproduce this in the react editor with the instructions provided in this comment.

  5. kyleknighted commented on Jul 8, 2014

    @kyleknighted

    I am able to reproduce this issue as well. +1 to fixing this!

    OSX: 10.9.3
    Atom: 0.107.0

  6. nathansobo commented on Jul 8, 2014

    @nathansobo
    Contributor

    I'm going to rename this issue to "Not auto-scrolling when undo does not cause the selection to change". Fixing this is going to require a rethink of our autoscroll strategy, so I'd like to not make it a blocker for the React editor roll out.

  7. changed the title [-]Undo: Scroll to changes[/-] [+]Not autoscrolling on undo when selection does not change[/+] on Jul 8, 2014
  8. DiThi commented on Jan 3, 2015

    @DiThi

    Can confirm by deleting a symbol (e.g. an =), scrolling out and then undoing: it doesn't scroll.

    I'm not sure what I did but autocomplete showed up for something else while line was out of view.

    Wouldn't be easier/better to always autoscroll on undo when cursor is out of view? (not when it changes)

  9. self-assigned this
    on Jan 5, 2015
  10. removed their assignment
    on Jul 23, 2015
  11. izuzak commented on Sep 14, 2015

    @izuzak
    Contributor

    I can no longer reproduce this problem (even with the instructions from #2158 (comment)), so going to close this issue. Let us know if anyone can still reproduce this in Atom 1.0.11.

  12. lock commented on Jan 20, 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!

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions