tldraw/packages
Mitja Bezenšek 4af92421b3
Zooming improvement (#2149)
This improves how zooming works when we zoom in an inactive window. With
this change you should zoom towards the pointer position, while before
it zoomed towards the last known pointer position before the window
became inactive.

Fixes #2165 

Before


https://github.com/tldraw/tldraw/assets/2523721/50018782-533a-43bb-88a5-21fc4419b723

After


https://github.com/tldraw/tldraw/assets/2523721/c3859f84-ef56-4db8-96b9-50a2de060507



### 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

### Test Plan

1. Open the tldraw editor.
2. Click away from the browser window so that it's not longer active.
3. Hover over the browser window and start zooming. 

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- Improves zooming for inactive windows.
2023-11-07 13:51:28 +00:00
..
assets bump prerelease from alpha to beta (#2148) 2023-11-06 11:57:12 +00:00
editor Zooming improvement (#2149) 2023-11-07 13:51:28 +00:00
state bump prerelease from alpha to beta (#2148) 2023-11-06 11:57:12 +00:00
store bump prerelease from alpha to beta (#2148) 2023-11-06 11:57:12 +00:00
tldraw Zooming improvement (#2149) 2023-11-07 13:51:28 +00:00
tlschema bump prerelease from alpha to beta (#2148) 2023-11-06 11:57:12 +00:00
utils bump prerelease from alpha to beta (#2148) 2023-11-06 11:57:12 +00:00
validate bump prerelease from alpha to beta (#2148) 2023-11-06 11:57:12 +00:00