tauri-apps / tauri-apps/plugins-workspace
onZoomChange / Persist zoom-level in tauri-plugin-window-state
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
### Describe the problem
Basically what the title says. I tried implementing a zoom state persistence with my own config, but as there is not way to listen to zoom change events, there is a high-chance that users would not see their zoom preferences restored when starting the app after changing the zoom level via `ctrl +`, `ctrl -` or `ctrl wheel`.
### Describe the solution you'd like
Either:
- A way to subscribe to zoom change events in Tauri so I can implement the persistence myself
- Have this built-in in `tauri-plugin-window-state` (this is a cherry on top, but just the first solution would be great).
### Alternatives considered
_No response_
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.