Commit Graph

6 Commits

Author SHA1 Message Date
Kartik K. Agaram 03c4f86ccd snapshot: commit 0ca5bb0e8d, take 2
Panning with a cursor inside a node is working fine.
The relationship between y_of_schema1 and schema1_of_y is preserved.
I understand why I shouldn't scale the y in the call to schema1_of_y.

I'm also feeling a little more confident about why lines.love shouldn't
use coordinate transforms. The problem is that text gets blurry if it
starts at non-integer coordinates. We're forced to get into special
cases.

There's still the outstanding issue that the surface y coordinate of
each screen line is not consistent as you pan around (and the editor
starts off-screen above the viewport).

If you have just text boxes it's only noticeable when one box's top
margin is visible and another is not. Then the text in the two moves
relative to each other.
2023-10-25 09:30:50 -07:00
Kartik K. Agaram d0dffb4d00 undo 2 most recent commits 2023-10-25 09:29:22 -07:00
Kartik K. Agaram c2f765489a commit 0ca5bb0e8d did indeed cause the regression
Unscaled y makes cursor scrolling more stable, but it seems to be
compensating for an error elsewhere. The location of the top margin of
text is not stable, and I only notice when I can see the bottom margin
of the bounding box. (When the top margin is visible we never enter that
branch in update_editor_box.)

I should just use LÖVE's standard translation and scaling transforms for
the surface! Don't know why I didn't think of that.
2023-10-25 09:27:45 -07:00
Kartik K. Agaram 6bcfba598c improve size of background box
This fixes the regression of 2 commits ago, though it's still not ideal.
We sometimes end up with visual artifacts of overly tall bounding boxes
that disappear when we pan (call A).
2023-10-25 00:15:29 -07:00
Kartik K. Agaram c3de51769c backport a few more changes from driver.love
None of these should affect behavior.
2023-04-22 22:29:22 -07:00
Kartik K. Agaram b138f1ff9b Merge template-live-editor 2023-04-16 11:30:56 -07:00