tauri-apps / wry

Cross-platform WebView library in Rust for Tauri.
Apache License 2.0
3.63k stars 274 forks source link

Window resizing triggers WebView mouse events #405

Open lumenian opened 3 years ago

lumenian commented 3 years ago

Describe the bug Clicking on the window's resize area at the moment doesn't stop the mouse event from propagation to the webview content.

Steps To Reproduce

  1. Add an event listener for any of the mouse click events
  2. Resize the window (width decorations set to false) - expect the event callback to fire

Expected behavior Resizing the app's window should not propagate the mouse click event to the webview. This is also the way Electron handles it, as far as I could confirm.

lumenian commented 3 years ago

It seems that only the mousedown event gets propagated. Repo with minimal test: https://github.com/lumenian/wry-resize-click-propagation/