Commit Graph

6 Commits

Author SHA1 Message Date
Kartik K. Agaram b5b38c83f3 this improves things a little more
I need to run A() because I'm scaling the font, and that requires
recomputing heights.

Things were different at the start of this project, because I scaled the
font rather than reinitialize it when zooming.

I still see strange artifacts where a box seems overly long as its
bottom border rises above the bottom edge of the viewport. But as it
continues to rise it snaps to the right height for the text.

One benefit: now I don't need to redundantly set font twice in a single
frame.
2023-10-25 09:27:15 -07:00
Kartik K. Agaram 09b8f985db backport a bugfix from driver.love
Ignore typing if cursor isn't in viewport.
2023-10-22 11:45:48 -07:00
Kartik K. Agaram 35919374e3 backport a bugfix from driver.love
Zooming out too far shouldn't crash the app.
2023-10-22 11:43:58 -07:00
Kartik K. Agaram cba7183a09 prints for major events 2023-10-22 11:41:34 -07:00
Kartik K. Agaram 4c8960b5c7 greatly simplify layout
I don't know why this was so hard, but I don't need this variable
preserve_screen_top_of_cursor_node at all. We only set it when the
cursor is in some node, but we also only check for when the current node
is the cursor. Comparing with a nil cursor node works just as well.

I've also checked that driver.love doesn't need
preserve_screen_top_of_cursor_node. I think it came from pensieve.love,
where I've since taken it out. Did I ever need it even there?
2023-10-21 09:57:44 -07:00
Kartik K. Agaram b138f1ff9b Merge template-live-editor 2023-04-16 11:30:56 -07:00