From 393d4f309ba238f81d100aae409a784f82d88c15 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Mon, 16 Dec 2024 14:22:33 +1300 Subject: Only send Event::CursorExit when all mouse buttons are released This is to allow a user to drag an element inside the program window and for the mouse cursor to move in and out of the window during the drag operation. This is the intuitive and expected behaviour. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index acf8287..1da2e91 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,7 @@ mod window_program; mod phosphor; pub use events::{Request, Event, Action, Axis, MouseButton, SizeBounds}; -pub(crate) use window::PhosphorWindow; +pub(crate) use window::{PhosphorWindow, PointerState}; pub use window_builder::WindowBuilder; pub use window_program::WindowProgram; -- cgit v1.2.3-70-g09d2