glushchenko / fsnotes

Notes manager for macOS/iOS
https://fsnot.es
MIT License
6.47k stars 474 forks source link

Cursor jumps to top of note when switching applications #1500

Closed dylanseeger closed 1 year ago

dylanseeger commented 1 year ago

Description

When I'm editing the middle of a note and I click or CMD+Tab away from FSNotes, the editor view and my cursor jumps to the top of the note.

When "Restore cursor position" is enabled (which I have disabled due to other bugs), the editor still jumps to the top before returning to its previous position.

This sort of bug is extremely disorienting and makes referencing long notes cumbersome.

To Reproduce

  1. Select a note
  2. Scroll down and type in the middle of the note
  3. Switch to any other application, such as Finder or Safari
  4. Switch back to FSNotes and notice cursor position

Expected behavior

No response

FSNotes version

6.1.4 (559)

macOS/iOS version

13.2.1

Additional context

I have FSNotes set to Vertical layout, a la Notational Velocity.

glushchenko commented 1 year ago

Can not reproduce ...

https://user-images.githubusercontent.com/1089917/227652448-ff4bb693-e76e-414c-8f1b-8ee593c05385.mov

dylanseeger commented 1 year ago

@glushchenko You have to type new text before switching applications. This bug is consistent in my testing across multiple machines.

gingerbeardman commented 1 year ago

I can also not reproduce.

If possible, could you please make a screen recording with keyboard overlay (using KeyCastr, or similar)?

Also sharing a note that this happens in, and/or your app settings, might be useful.

dylanseeger commented 1 year ago

See below for a screen capture. This happens when typing in any note and using CMD+Tab to switch applications.

https://user-images.githubusercontent.com/2807899/227779825-e4f01e20-f211-4454-8440-ee13b8bd515a.mov

glushchenko commented 1 year ago

Indeed, very strange behavior. I do not have it.

dylanseeger commented 1 year ago

Is your Mac on Ventura? The issue is present on my Intel iMac, M1 MacBook Air, and my wife's MacBook Air, all of which are running Ventura. I even tried setting up a new user with stock FSNotes settings and was able to immediately replicate this.

gingerbeardman commented 1 year ago

OK! I can reproduce it on Monterey. @glushchenko

Happens in any layout (Top/Vertical or Side).

What I am seeing is the cursor position jumping to the middle of the window, which I guess on your small window seems a lot worse than on my long window.

In this video I show:

  1. reproduce/happens
  2. wait, does not happen
  3. reproduce/happens

https://user-images.githubusercontent.com/49612/228053218-000301cb-d9b6-47de-aaa6-fb1422baf439.mov

glushchenko commented 1 year ago

Finally, i reproduce it too!

dylanseeger commented 1 year ago

Excellent! This is the bug I run into the most frequently. Is there anything else I can do to help get it fixed?

glushchenko commented 1 year ago

I'm working on a fix right now.

dylanseeger commented 1 year ago

Thank you!

glushchenko commented 1 year ago

Fixed! Release will be a little bit later. Thanks @gingerbeardman and @dylanseeger

glushchenko commented 1 year ago

https://github.com/glushchenko/fsnotes/releases/tag/6.2.3