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

Closed
askming opened this issue May 22, 2019 · 24 comments · Fixed by #3177
Closed

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

askming opened this issue May 22, 2019 · 24 comments · Fixed by #3177
Labels
bug 🐛 Issue concerns a bug. level 1 ❕ A bug that caused minor damage: App is still usable, but minor features might not work. rewarded on issuehunt 🎁 Issue has been resolved and a contributor has been rewarded.

Comments

@askming
Copy link

askming 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

hikerpig hikerpig has been rewarded.

Backers (Total: $20.00)

Submitted pull Requests


Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

@ZeroX-DG ZeroX-DG added the needs investigation 🔬 Issue requires further investigation to locate or narrow down the problem. label May 23, 2019
@ZeroX-DG
Copy link
Member

I can't reproduce this bug in Linux.

@L1l1thLY
Copy link

i have the same problem. same os same version.

@L1l1thLY
Copy link

this problem did not appear in version 0.11.15.

@Sweeet
Copy link

Sweeet commented May 23, 2019

+1 experiencing same in windows 10 Enterprise Version 1703.

@askming
Copy link
Author

askming commented May 23, 2019

aa

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

@daxingshen
Copy link

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

@ZeroX-DG ZeroX-DG added bug 🐛 Issue concerns a bug. level 1 ❕ A bug that caused minor damage: App is still usable, but minor features might not work. and removed needs investigation 🔬 Issue requires further investigation to locate or narrow down the problem. labels May 27, 2019
@ZeroX-DG
Copy link
Member

ZeroX-DG commented May 27, 2019

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

@zzxxhhzxh
Copy link

zzxxhhzxh 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
Copy link

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
Copy link

mfouet commented Jun 3, 2019

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

@lilacs2039
Copy link

lilacs2039 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
Copy link

payacoub 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

@issuehunt-oss issuehunt-oss bot added the funded on issuehunt 💵 Issue has received funding that will be rewarded to the contributor solving this issue. label Jun 7, 2019
@IssueHuntBot
Copy link

@BoostIO has funded $20.00 to this issue.


@ericyan3000
Copy link

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.

@RaiZiStyle
Copy link

I got the same issue, i'm on Windows 10. Boostnote 0.11.17 and both preview and text go full up. But only when i have an image.

@hikerpig
Copy link
Contributor

I've done some digging and found it is caused by this line.

The initial commit message c667e14 explains the purpose and it's ok then. But some time after that, the code got moved around and becoming buggy.

I will make a PR to fix this

@matneu03
Copy link

matneu03 commented Aug 8, 2019

Having the samme issue in version 0.12.1 on Windows 10

@mjhoshea
Copy link

Having the same issue in Ubuntu 18.04 version 0.12.1

@MihaelBercic
Copy link

Having the same issue version 0.12.1 on Windows 10.
Happens when there is an image preview present in the markdown.

@issuehunt-oss
Copy link

issuehunt-oss bot commented Aug 26, 2019

@Rokt33r has rewarded $18.00 to @hikerpig. See it on IssueHunt

  • 💰 Total deposit: $20.00
  • 🎉 Repository reward(0%): $0.00
  • 🔧 Service fee(10%): $2.00

@Flexo013
Copy link
Contributor

Flexo013 commented Oct 8, 2019

Reopening this until the fix is released.

@Flexo013 Flexo013 reopened this Oct 8, 2019
@MatthewWolff
Copy link

Release ETA?

@Flexo013
Copy link
Contributor

Flexo013 commented Oct 11, 2019

Pre-release can be found here: https://github.com/BoostIO/boost-releases/releases/tag/v0.13.0-0

If no major problems with it are discovered then the full release will be in 3 days.

@Flexo013
Copy link
Contributor

Fix has been released: https://github.com/BoostIO/boost-releases/releases

@Flexo013 Flexo013 added rewarded on issuehunt 🎁 Issue has been resolved and a contributor has been rewarded. and removed 🎁 Rewarded on Issuehunt labels Feb 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issue concerns a bug. level 1 ❕ A bug that caused minor damage: App is still usable, but minor features might not work. rewarded on issuehunt 🎁 Issue has been resolved and a contributor has been rewarded.
Projects
None yet
Development

Successfully merging a pull request may close this issue.