marc2332 / freya

Cross-platform GUI library for 🦀 Rust powered by 🧬 Dioxus and 🎨 Skia.
https://freyaui.dev/
MIT License
1.33k stars 51 forks source link

fix: Only send left mouseover event when not clicking the mouse #753

Closed marc2332 closed 1 month ago

marc2332 commented 1 month ago

Winit only emits mouseover events when (case 1) the cursor is inside the window or (case 2) when the cursor is outside the window, but a click event was initiated inside the window.

This PR fixes a bug where the left mouseover was being emitted even in case 2.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Project coverage is 73.56%. Comparing base (6c72898) to head (7a45034).

Files Patch % Lines
crates/renderer/src/renderer.rs 0.00% 10 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #753 +/- ## ========================================== - Coverage 73.57% 73.56% -0.02% ========================================== Files 199 199 Lines 20397 20400 +3 ========================================== Hits 15008 15008 - Misses 5389 5392 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.