summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2024-12-16 14:22:33 +1300
committerBen Bridle <ben@derelict.engineering>2024-12-16 14:22:33 +1300
commit393d4f309ba238f81d100aae409a784f82d88c15 (patch)
treea6ce747bde68b5ac93efaf308cb63442e5e87604 /src/lib.rs
parent598e503f9898580b40c7a63b343eb2b1d168c2c3 (diff)
downloadphosphor-393d4f309ba238f81d100aae409a784f82d88c15.zip
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.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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;