typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

cursor disappeared when making a long press on right arrow key

Open warrinchen opened this issue 2 years ago • 10 comments

  • [x] Searched existing issues to avoid creating duplicates.

  • [x] Confirmed that it can be reproduced in built-in themes without customized css.

    If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.

  • [x] Searched http://support.typora.io/


Describe the bug On normal mode. When I try to move cursor(the caret) by making a long press on right arrow key, the cursor disappeared, and appeared at some position after I released the key. But this do not appears in source code mode. Maybe too many code blocks caused the error. Because in my md files on which error occured have more than 25k characters and ten long code blocks or many code blocks and table sheets.

To Reproduce Steps to reproduce the behavior:

  1. open a long md file by typora with normal mode
  2. keeping press right arrow key for at least 2s.
  3. See error: the cursor disappeared in the process and appeared after the proces.

Expected behavior I wish the cursor will behave as normal as it in source code mode and short md files.

Screenshots / Screencasts

https://user-images.githubusercontent.com/53485969/166087984-29e8f920-0f85-428f-ac56-004e5c376793.mp4

Sample Markdown File ~~it is too long to write here.~~

I add ==disappear-flag== to one of the place that the problem appeared.

sample_file.zip

below is the file i used in the snapshot:

sample_file_in_video.zip

Desktop (please complete the following information):

  • OS: Windows 10 64bit 21H1

Typora Version 1.2.5

warrinchen avatar Apr 30 '22 03:04 warrinchen

possible to send us ([email protected]) a sample md file

may duplicated with #1668

abnerlee avatar May 17 '22 14:05 abnerlee

possible to send us ([email protected]) a sample md file

may duplicated with #1668

added the sample file in the issue just now.

warrinchen avatar May 17 '22 14:05 warrinchen

Hmm... It still works fine in my test.

Did this happen in notepad.exe? Were you use battery power?

abnerlee avatar May 19 '22 06:05 abnerlee

Hmm... It still works fine in my test.

Did this happen in notepad.exe? Were you use battery power?

The two files work fine in my notepad, visual studio code and source code mode in typora1.2.5, whenever i use battery or not.

It will happen in long text paragraph that in long file.(i uploaded the file that i used in the snapshot, maybe i should do this at first, it's my fault.)

warrinchen avatar May 19 '22 06:05 warrinchen

In my test the caret may have some lag but won't disappear in 1~2s, so still for such long text, Did this happen in notepad.exe? Were you use battery power?

abnerlee avatar May 26 '22 07:05 abnerlee

In my test the caret may have some lag but won't disappear in 1~2s, so still for such long text, Did this happen in notepad.exe? Were you use battery power?

I do use a laptop and my cpu is i5-9300H, I think it is enough for text file that less than 1M. I tested both in power and battery. The normal mode always perform bad. The source code mode and other softwares works well. Maybe there are some performance problems or bugs?

warrinchen avatar May 26 '22 07:05 warrinchen

I'm having the same problem ever since Typora 1.2.0. Here is a link to one of the documents I'm editing that has this issue:

https://github.com/hyfydy/hyfydy-doc/blob/main/hyfydy-user-manual.md

Move the cursor to the text under "About" and hold the right cursor key to see the problem. This happens on both my laptop and desktop. Downgrading to Typora 1.1.5 resolves the issue completely.

Also, note that the issue only occurs when navigating normal text. The cursor moves just fine inside code blocks or equations.

tgeijten avatar Jul 27 '22 14:07 tgeijten

I'm having the same problem ever since Typora 1.2.0. Here is a link to one of the documents I'm editing that has this issue:

https://github.com/hyfydy/hyfydy-doc/blob/main/hyfydy-user-manual.md

Move the cursor to the text under "About" and hold the right cursor key to see the problem. This happens on both my laptop and desktop. Downgrading to Typora 1.1.5 resolves the issue completely.

Also, note that the issue only occurs when navigating normal text. The cursor moves just fine inside code blocks or equations.

I tried on my laptop. And I do this on a win11 virtual machine. So it is. Is there is a negative optimization ? @abnerlee

warrinchen avatar Jul 27 '22 15:07 warrinchen

I'm having the same problem ever since Typora 1.2.0. Here is a link to one of the documents I'm editing that has this issue:

https://github.com/hyfydy/hyfydy-doc/blob/main/hyfydy-user-manual.md

Move the cursor to the text under "About" and hold the right cursor key to see the problem. This happens on both my laptop and desktop. Downgrading to Typora 1.1.5 resolves the issue completely.

Also, note that the issue only occurs when navigating normal text. The cursor moves just fine inside code blocks or equations.

The version of 1.4.0-dev works fine! This version solved this problem. Expect the stable version.

warrinchen avatar Jul 30 '22 00:07 warrinchen

I can concur that with version 1.4.4, the issue has been resolved. Thank you!

tgeijten avatar Sep 09 '22 07:09 tgeijten