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...
You would need a different type for each frame of reference though I think - that'd work for the most important reference frames, but probably wouldn't scale well if you wanted to make sure two arbitrary composables were talking to each other properly.
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.