tauri icon indicating copy to clipboard operation
tauri copied to clipboard

feat(window): add drag-stopped and resize-stopped events using move/r…

Open Khyati-Kapil opened this issue 3 months ago • 1 comments

feat(window-events): add drag-stopped and resize-stopped events

  • Added listener for tauri://move to detect when window dragging stops using a 150ms idle timeout.
  • Added listener for tauri://resize to detect resize-stop events.
  • Ensures consistent behavior across macOS, Windows, and Linux. This closes #14489

Khyati-Kapil avatar Nov 19 '25 18:11 Khyati-Kapil

@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.

Khyati-Kapil avatar Dec 04 '25 19:12 Khyati-Kapil