https://kotlinlang.org logo
#compose
Title
# compose
z

zalewski.se

04/12/2022, 8:13 PM
Is it just me or the way panning + zooming is being handled in this example from the official docs, works quite weird together? If you pinch the object and (keep touching the screen) you start moving it around (do few circles on your screen with it) it will quickly go out of the bounds of your screen. Shouldn’t the offsetChange be impacted by the scale there? 🤔
So instead of:
Copy code
offset += offsetChange
do:
Copy code
offset += offsetChange * scale
2 Views