Tldraw/apps/dotcom/src
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
..
__snapshots__ [dx] Derive vercel routes from react-router config (#2937) 2024-02-26 12:30:35 +00:00
components Improve back to content (#3532) 2024-04-19 12:07:33 +00:00
hooks Remove access token logic. (#3187) 2024-03-18 14:34:38 +00:00
pages tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
utils Only show cursor chat button in select mode (#3485) 2024-04-16 12:42:26 +00:00
main.tsx Make Vercel URL rewrites precise (#2913) 2024-02-22 18:25:45 +00:00
routes.test.tsx [dx] Derive vercel routes from react-router config (#2937) 2024-02-26 12:30:35 +00:00
routes.tsx Make Vercel URL rewrites precise (#2913) 2024-02-22 18:25:45 +00:00