Page/screen experiences slight jumps in Typewriter mode
CompletedI’ve noticed that when I use Typewriter mode in full screen, there seems to be a small glitch (as it seems unlikely that this behavior is by design): If there is no new line below the line I am typing in, when the text cursor approaches the midpoint on my screen (at least at first), the page begins to jump slightly every time I press the space bar. This issue seems to be specific to situations where I’m using nvUltra in full screen mode or in large windows. It does not occur when I’m typing above or in the middle of existing text in the document. Essentially, it only happens when I am typing the last line of the document. Interestingly, I’ve discovered that by pressing the “return” key once or twice (i.e., by adding extra lines below the one I’m typing in) and then resuming typing, the jump no longer occurs.
I am curious if other users have encountered this behavior.
-
Years ago there was a bug in WebView where inserting a space (not any other character) into the HTML would cause a jump. That seems better in WKWebView (the modern replacement of WebView).
Interestingly, newer versions of NSTextView seem to have picked up this same bug under certain circumstances (it did not exist in old versions of NSTextView). To date, I have not found a workaround for NSTextView. For WebView, I had to intercept and prevent insertion of space characters into the preview. This was the only solution that seemed to work.
I suspect that is what you are experiencing…
0 -
Thanks for the quick response, Fletcher. I must admit that I am not familiar with WebView, WKWebView, etc. But if I understood correctly, yes, I only experience this bug in the Editor; the Preview does not jump at all.
0 -
I'm also experiencing it. I'm not using full screen.
It seems to be exacerbated by the number of lines. In my specific case it's a 129 lines as a list of short items. If I insert the space on a high line, say 70 or less, no jitter but much below that and it starts. It's hard to say whether it gets worse more than just is or isn't.
I have notes with far more characters but fewer lines that it doesn't happen to.
Version 1.0.0 (2023.06.24.20.15)
0 -
This is happening for me even when typewriter mode is off. 2023.09.20.16.54
It's bad enough that I can't type in NV and have to cut-paste my text into another app to keep working.
0 -
I think I finally figured this out. Briefly, it has to do with a fix for an issue long ago affecting some CJK users (e.g. 2-Set Korean). It should be fixed in the next release. (It's fixed for me when I test it.)
The problem occurs when editing a large block of text that requires “re-highlighting”, especially if that block of text extends above the top of the editing window. The easiest way to trigger it is a long list (since the list items themselves can be short).
Thanks!
0
Please sign in to leave a comment.
Comments
5 comments