tldraw/packages
Steve Ruiz 379094ddfb
Don't trigger pointer move on zoom (#3305)
In this PR, when the camera changes, we check whether the pointer's page
position has actually changed before triggering a pointer move event.
This means that the pointer move will not fire while zooming in and out.

### Change Type

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

### Test Plan

1. Zoom in and out.
2. The performance tab should not see any calls to `updateHoveredShape`
or other pointer move related events.

### Release Notes

- Improve performance of zooming.
2024-03-29 15:29:28 +00:00
..
assets ui: make toasts look more toasty (#2988) 2024-03-27 09:41:13 +00:00
editor Don't trigger pointer move on zoom (#3305) 2024-03-29 15:29:28 +00:00
namespaced-tldraw use native structuredClone on node, cloudflare workers, and in tests (#3166) 2024-03-18 17:16:09 +00:00
state Revert perf changes (#3217) 2024-03-21 10:05:44 +00:00
store Fix typo. (#3306) 2024-03-29 12:32:25 +00:00
tldraw Decrease the number of elements by 3. (#3283) 2024-03-28 09:49:29 +00:00
tlschema use native structuredClone on node, cloudflare workers, and in tests (#3166) 2024-03-18 17:16:09 +00:00
tlsync log message size in worker analytics (#3274) 2024-03-27 11:33:47 +00:00
utils use native structuredClone on node, cloudflare workers, and in tests (#3166) 2024-03-18 17:16:09 +00:00
validate React-powered SVG exports (#3117) 2024-03-25 14:16:55 +00:00