feat(window): add drag-stopped and resize-stopped events using move/r…
feat(window-events): add drag-stopped and resize-stopped events
- Added listener for
tauri://moveto detect when window dragging stops using a 150ms idle timeout. - Added listener for
tauri://resizeto detect resize-stop events. - Ensures consistent behavior across macOS, Windows, and Linux. This closes #14489
@Legend-Master As suggested, I didn’t implement drag-stopped / resize-stopped inside the runtime because the JS-side detection isn’t reliable enough for all platforms.
Instead, I added a userland example to the Tauri documentation that shows how
developers can detect when window dragging or resizing has stopped by
listening to tauri://move and tauri://resize events and debouncing them.
Link to PR in tauri-docs: https://github.com/tauri-apps/tauri-docs/pull/3631
This keeps the runtime unchanged while still giving developers a clear and recommended pattern to use until native backend support is added. Happy to adjust or expand the docs if needed.