Post
Mental translation between different coordinate spaces is tough. I somehow keep running into this problem in every other project. I wrote this while dealing with multiple windows in cascade: github.com/saket/cascad...
I wonder if there'd be a way to add type-safety somehow that would make it better, without adding too much friction. Having Offset as a type is great, but it's also just as important to keep track of what you have an Offset _from_
0 reposts2 likes
I saw your other post and was reminded that I'm also facing this challenge in telephoto: converting between the viewport coordinate space and the canvas/content space. bsky.app/profile/vany...
After figuring out how to make the coordinates work, it's so satisfying to use a live-updating drag and drop that previews where the dropped content will go.