tldraw/packages
Mitja Bezenšek adc53afbe3
Don't allow edge scrolling when camera is frozen. (#2992)
Don't allow edge scrolling when camera is frozen.

### Change Type

- [x] `patch` — Bug fix
- [ ] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [ ] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [ ] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Testing
It's a bit hard to test this, you actually need to change the code a
bit.
1. Add an `onMount` handler to the `Tldraw` component in `develop.tsx`
2. In the `onMount` handler add:
`editor.updateInstanceState({canMoveCamera: false})` to freeze the
camera.
3. Make sure edge scrolling is turned on in the preferences.
4. Use brush selections / resizing / translating close to the edges.
5. The camera should not move.

### Release Notes

- Don't allow edge scrolling when camera is frozen.
2024-02-29 11:27:16 +00:00
..
assets Prevent iframe embedding for dotcom (except on tldraw.com) (#2947) 2024-02-26 18:30:55 +00:00
editor Don't allow edge scrolling when camera is frozen. (#2992) 2024-02-29 11:27:16 +00:00
state bump typescript / api-extractor (#2949) 2024-02-25 11:43:17 +00:00
store bump typescript / api-extractor (#2949) 2024-02-25 11:43:17 +00:00
tldraw Make exportToBlob public (#2983) 2024-02-28 11:26:30 +00:00
tlschema Setup papercuts (#2987) 2024-02-29 10:40:28 +00:00
tlsync bump typescript / api-extractor (#2949) 2024-02-25 11:43:17 +00:00
utils bump typescript / api-extractor (#2949) 2024-02-25 11:43:17 +00:00
validate bump typescript / api-extractor (#2949) 2024-02-25 11:43:17 +00:00