tldraw/packages
Steve Ruiz 930ea64d35
Fix drag distance (#3873)
This PR fixes a bug where the drag distance for an interaction was being
measured in page space rather than screen space. It should be measured
in screen space. The actual check for `isDragging` is a little ugly but
this is correct.

### Change Type

- [x] `sdk` — Changes the tldraw SDK
- [x] `bugfix` — Bug fix

### Test Plan

1. Zoom in
2. Drag the center handle of an arrow shape

- [x] Unit Tests

### Release Notes

- Fixed a bug where the minimum distance for a drag was wrong when
zoomed in or out.
2024-06-04 12:16:23 +00:00
..
assets Add heart geo shape (#3787) 2024-05-24 13:04:28 +00:00
dotcom-shared Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
editor Fix drag distance (#3873) 2024-06-04 12:16:23 +00:00
namespaced-tldraw Don't check api.json files into git (#3565) 2024-04-24 15:58:26 +00:00
state timeouts: rework effectschedule timeout tracking (#3870) 2024-06-04 10:55:22 +00:00
store Snapshots pit of success (#3811) 2024-06-03 15:58:00 +00:00
tldraw Fix drag distance (#3873) 2024-06-04 12:16:23 +00:00
tlschema Snapshots pit of success (#3811) 2024-06-03 15:58:00 +00:00
tlsync editor: register timeouts/intervals/rafs for disposal (#3852) 2024-06-04 08:50:40 +00:00
utils editor: register timeouts/intervals/rafs for disposal (#3852) 2024-06-04 08:50:40 +00:00
validate Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00