https://futureofcoding.org/ logo
#devlog-together
Title
# devlog-together
k

Kartik Agaram

12/23/2023, 6:57 PM
j

Jack Rusher

12/24/2023, 10:33 AM
zoom is currently changing the perceived origin! (everybody does this the first time they implement this, but it’s not the nicest user experience)
k

Kartik Agaram

12/24/2023, 6:21 PM
Yes! I fixed this later. Will share in a bit.
How does this look? I'm basically holding the centroid of the fingers immobile as I zoom. So the top-left of the viewport is constantly adjusted by centroid/oldzoom - centroid/newzoom. Does this seem like the best approach? (I considered weighting by the finger that is moving more, but convinced myself I get that effect for free since the above adjustment is constantly happening as the fingers move. But perhaps I'm rationalizing.)
j

Jack Rusher

12/25/2023, 11:17 AM
looks way better! 🙂
2 Views