Commit Graph

18 Commits

Author SHA1 Message Date
Elf M. Sternberg f726ef1b93 Adding an animation frame between the render() and the update() allowed for enough of a reflow that Firefox is able to get the tile sizes correctly. 2025-01-21 10:42:44 -08:00
Elf M. Sternberg 80a9c7aa35 Fixed a bunch of coordinate issues. The Z-index is responding correctly. Positioning without overlapping is still broken. 2025-01-20 16:34:46 -08:00
Elf M. Sternberg 97dde3bdfe Removing cruft. 2025-01-20 16:03:38 -08:00
Elf M. Sternberg 141a7c0461 Updated movement code for performance and accuracy.
This was a learning experience.

The transform controls `rotate`, `scale`, and `translate` have independent CSS names now, so I don't
have to memorize the transformation pattern needed to make them go as expected. On the other hand,
`transition` is still how you describe the speed and easing.  And even though they're not
officially transformations, `transitionend` is how you detect when one has completed.

All of the various different techniques for figuring out where something is on the page with respect
to another element can be terribly confusing. Ultimately, I went with offsets-from-viewport, as that
seems to be the most common way of doing the calculations.

Separating `pointermove` from the animation frames used to update the page is a very nifty technique
that I learned from the Svelte guys. `pointermove` only updates an (x,y) coordinate pair that you
keep in memory; as long as you're "tracking a drag," you just update on every available animation
frame, using the last (x,y) pair that it saved.  This gives you much smoother animations.
2025-01-20 16:03:18 -08:00
Elf M. Sternberg f521b261e6 Got the roundtrip working. But the endstate math is off. 2025-01-20 13:28:22 -08:00
Elf M. Sternberg 764523ed4f Added the layouts section, but I'm going to be pulling from emerald next. 2024-11-28 09:39:15 -08:00
Elf M. Sternberg f5a174710d Merge remote-tracking branch 'refs/remotes/origin/lit' into lit
* refs/remotes/origin/lit:
  Flyout begun.
  Cleaning up.
2024-11-22 10:43:33 -08:00
Elf M. Sternberg 9bd56da62d Added the axis code. 2024-11-22 10:43:26 -08:00
Elf M. Sternberg 9a53ecf4c9 Flyout begun. 2024-11-21 12:49:45 -08:00
Elf M. Sternberg c7c9c4809d We'll figure it out later. 2024-11-19 14:34:53 -08:00
Elf M. Sternberg ee1b763a7a Working in the colission code, moved the fly-in handlers to the board. 2024-11-19 14:33:58 -08:00
Elf M. Sternberg 5efe79173c Cleaning out the old stuff from 2012. 2024-11-17 10:24:51 -08:00
Elf M. Sternberg 2b2959febb This is gonna need some cleanup, but it now correctly positions, repositions, reports, and maintains the position of the target *and* the pointer. 2024-11-17 10:22:14 -08:00
Elf M. Sternberg 93fb8f1c2e This is gonna need some cleanup, but it now correctly positions, repositions, reports, and maintains the position of the target *and* the pointer. 2024-11-17 10:20:54 -08:00
Elf M. Sternberg d0bf45d827 Cleaning up. 2024-11-16 20:11:07 -08:00
Elf M. Sternberg 9c97349ba7 Working on the lit evolution. 2024-11-16 20:07:16 -08:00
Elf M. Sternberg 60f398b143 Forgot a suffix. 2012-03-27 16:20:11 -07:00
Elf M. Sternberg 659b11b929 Initial check-in after being scrubbed of sensitive data. 2012-03-27 16:18:55 -07:00