Back to Tldraw

Lock camera zoom

apps/examples/src/examples/editor-api/lock-camera-zoom/README.md

5.1.1319 B
Original Source

Lock the camera at a specific zoom level.


Need to lock the camera at its current zoom level? You can use the camera controls API to keep the zoom level from changing.

In this example, press Shift+K to lock the camera at its current zoom level. Press Shift+K again to unlock the camera and allow it to zoom again.