Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening editor from preview scrolls back to the top #2553

Closed
ValGibello opened this issue Oct 29, 2018 · 2 comments
Closed

Opening editor from preview scrolls back to the top #2553

ValGibello opened this issue Oct 29, 2018 · 2 comments
Labels
duplicate 🚫 Issue is a duplicate. feature request 🌟 Issue is a new feature request.

Comments

@ValGibello
Copy link

Current behavior

Clicking on the preview panel (once or twice depending on settings) switches to editing mode but the editor goes back to the top of the page or where the cursor previously was in this mode.

Expected behavior

When scrolling the preview and clicking on it to switch to editor mode, it is expected that the cursor is placed where the click was made in preview mode, or at least the view in the editor should reflect what the user was viewing in the preview.

Instead, it scrolls back to the last position of the cursor in the editor or to the top of the page. This makes a simple modification a bothersome process :

  1. Click on the preview panel to edit
  2. Scroll back to the part previously identified in preview mode
  3. Make the change

It is expected to behave like this :

  1. Click on some part of the text in the preview panel with the intent to edit it
  2. Editor opens and the view is set to the same part of the text, the cursor is placed where the click was made
  3. Make the change

Steps to reproduce

  1. Scroll down a note in preview mode
  2. Click somewhere in the text
  3. The editor opens but the page has scrolled back to the top

Environment

  • Version : 0.11.10
  • OS Version and name : all versions
@ZeroX-DG ZeroX-DG added duplicate 🚫 Issue is a duplicate. feature request 🌟 Issue is a new feature request. labels Oct 29, 2018
@ZeroX-DG
Copy link
Member

Thank you for reporting, duplicated: #382

@hinder90
Copy link

Version 0.12.0-0 on MacOS (10.14.5) continues to exhibit this behavior, though it is actually very erratic. The when checking a checkbox in Preview, the page doesn't seem to jump in a reliable manner. It doesn't appear to be relative to where the cursor is in the Editor. It seems that if you type into the editor the location of the Autoscrolling sometimes changes, but I cannot identify the pattern of the location where it scrolls to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate 🚫 Issue is a duplicate. feature request 🌟 Issue is a new feature request.
Projects
None yet
Development

No branches or pull requests

3 participants