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

MD editor scrolls to the top whenever I add new content #3023

Open
askming opened this issue May 22, 2019 · 14 comments

Comments

Projects
None yet
@askming
Copy link

commented May 22, 2019

Issuehunt badges

Current behavior

When I add new content or even type an enter in the text under MD document, the editor always scrolls to the top of the document.

Expected behavior

Page should stay where the cursor is placed.

Steps to reproduce

Open a long MD file and try to edit it at the end.

Environment

  • Version : Boostnote 0.11.16
  • OS Version and name : Windows 10

IssueHunt Summary

Sponsors (Total: $20.00)

Become a sponsor now!

Or submit a pull request to get the deposits!

Tips

@ZeroX-DG

This comment has been minimized.

Copy link
Member

commented May 23, 2019

I can't reproduce this bug in Linux.

@L1l1thLY

This comment has been minimized.

Copy link

commented May 23, 2019

i have the same problem. same os same version.

@L1l1thLY

This comment has been minimized.

Copy link

commented May 23, 2019

this problem did not appear in version 0.11.15.

@Sweeet

This comment has been minimized.

Copy link

commented May 23, 2019

+1 experiencing same in windows 10 Enterprise Version 1703.

@askming

This comment has been minimized.

Copy link
Author

commented May 23, 2019

aa

Here is a gif of the problem. @ZeroX-DG

@daxingshen

This comment has been minimized.

Copy link

commented May 24, 2019

i met the same problem when upgrade to lastes
version: 0.11.16(2019/5/22)

@ZeroX-DG

This comment has been minimized.

Copy link
Member

commented May 27, 2019

Confirm the bug in the 0.11.16 version. Thank you for reporting!

@zzxxhhzxh

This comment has been minimized.

Copy link

commented May 28, 2019

It still occurs in the 0.11.17 version. And the theme problem as well.

I found it may be a problem of Preview part. When I uncheck “When scrolling, synchronize preview with editor”, the Edit part won't scroll up to top, but the Preview part does. So if they are synchronized they will go to the top together.

@MarkMoudy

This comment has been minimized.

Copy link

commented May 31, 2019

Same issue here. Unchecking When scrolling, synchronize preview with editor makes it possible to edit the note but the preview pane still scrolls up to the top on each keypress.

Version : Boostnote 0.11.17
OS Version and name : macOS Mojave 10.14.5

@mfouet

This comment has been minimized.

Copy link

commented Jun 3, 2019

I think issues 3047 and 3023 are related to 3021 as well:
#3021

@lilacs2039

This comment has been minimized.

Copy link

commented Jun 4, 2019

I met the same problem, I came from #3047.
Version : Boostnote 0.11.17
OS Version and name : Windows 10
Unchecked "When scrolling, synchronize preview with editor" option.

Occuring situation

  • Contains image.
  • Both scroll bars are at the bottom.
  • Enter Any character.
    back

NOT Occuring situation

  • NOT Contains image.
  • Both scroll bars are at the bottom.
  • Enter Any character.
    notback
@payacoub

This comment has been minimized.

Copy link

commented Jun 6, 2019

Same here; I too have images in the note; had to disable the auto-scroll so that I can still write. Yet, the preview goes back to top regardless

@IssueHuntBot

This comment has been minimized.

Copy link

commented Jun 7, 2019

@BoostIO has funded $20.00 to this issue.


@ericyan3000

This comment has been minimized.

Copy link

commented Jun 12, 2019

same here, it happened on both Windows and Ubuntu OS.
I also discovered that the problem occurred whenever the image inserting syntax is completed.
Either

![image]()

or

![alt text][ref]
[ref]: a

will trigger the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.