BoostNote-Legacy icon indicating copy to clipboard operation
BoostNote-Legacy copied to clipboard

MD editor scrolls to the top whenever I add new content

Open askming opened this issue 7 years ago • 24 comments

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

askming avatar May 22 '19 23:05 askming

I can't reproduce this bug in Linux.

ZeroX-DG avatar May 23 '19 04:05 ZeroX-DG

i have the same problem. same os same version.

L1l1thLY avatar May 23 '19 06:05 L1l1thLY

this problem did not appear in version 0.11.15.

L1l1thLY avatar May 23 '19 06:05 L1l1thLY

+1 experiencing same in windows 10 Enterprise Version 1703.

Sweeet avatar May 23 '19 13:05 Sweeet

aa

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

askming avatar May 23 '19 23:05 askming

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

daxingshen avatar May 24 '19 06:05 daxingshen

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

ZeroX-DG avatar May 27 '19 12:05 ZeroX-DG

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.

zzxxhhzxh avatar May 28 '19 01:05 zzxxhhzxh

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

MarkMoudy avatar May 31 '19 15:05 MarkMoudy

I think issues 3047 and 3023 are related to 3021 as well: https://github.com/BoostIO/Boostnote/issues/3021

mfouet avatar Jun 03 '19 19:06 mfouet

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

lilacs2039 avatar Jun 04 '19 11:06 lilacs2039

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

payacoub avatar Jun 06 '19 13:06 payacoub

@boostio has funded $20.00 to this issue.


IssueHuntBot avatar Jun 07 '19 05:06 IssueHuntBot

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.

ericyan3000 avatar Jun 12 '19 21:06 ericyan3000

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.

RaiZiStyle avatar Jul 19 '19 08:07 RaiZiStyle

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

The initial commit message c667e1465d755d843f4ffd99b3d2cc4cc05a3382 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

hikerpig avatar Jul 28 '19 08:07 hikerpig

Having the samme issue in version 0.12.1 on Windows 10

matneu03 avatar Aug 08 '19 09:08 matneu03

Having the same issue in Ubuntu 18.04 version 0.12.1

mjhoshea avatar Aug 19 '19 17:08 mjhoshea

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

MihaelBercic avatar Aug 20 '19 10:08 MihaelBercic

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

  • :moneybag: Total deposit: $20.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $2.00

issuehunt-oss[bot] avatar Aug 26 '19 06:08 issuehunt-oss[bot]