Tldraw/packages/tldraw/src/lib/ui/components/HelperButtons
Steve Ruiz f6a2e352de
Improve back to content (#3532)
This PR improves the "back to content" behavior. Rather than using an
interval, we now add a "camera-stopped" event that triggers the check.

### Change Type

- [x] `sdk` — Changes the tldraw SDK
- [x] `improvement` 

### Test Plan

1. Create some shapes, then move the camera to an empty part of the
canvas.
2. Check that the back to content button appears.
3. Ensure that the back to content button does not appear when the
canvas is empty.
2024-04-19 12:07:33 +00:00
..
BackToContent.tsx Improve back to content (#3532) 2024-04-19 12:07:33 +00:00
DefaultHelperButtons.tsx children: any -> children: ReactNode (#3061) 2024-03-04 14:48:40 +00:00
DefaultHelperButtonsContent.tsx
ExitPenMode.tsx
StopFollowing.tsx