lmparppei / Beat

Beat - a simple and elegant screenwriting app for macOS
Other
175 stars 30 forks source link

When hiding Fountain markup, scroll view jumps up on space key #72

Closed lmparppei closed 3 years ago

lmparppei commented 3 years ago

When turning Hide Fountain markup on, pressing space key sometimes makes the scroll view jump up and down.

The fix for this is to set allowsNonContiguousLayout false. However, this makes performance with longer screenplays quite laggy.

If anyone can find any information about similar behavior with NSScrollView or NSTextView when using setGlyphs in NSLayoutManager, don't hesitate to link any information below.

BFLTP commented 3 years ago

I’m on 1.911. I haven’t experienced this issue. Does it only happen intermittently?

lmparppei commented 3 years ago

This was caused by a fix to keep scene numbers intact at all times. Scene numbers now drift around a bit, but at least the jumping was fixed.