internal(macOS) use NSTrackingArea instead of trackingRect (#4514)

This commit is contained in:
RandomScientist
2026-03-17 18:03:16 -07:00
committed by GitHub
parent 4f29aed5ee
commit 4d81f4aa62
4 changed files with 56 additions and 33 deletions

View File

@@ -156,6 +156,8 @@ pub enum WindowEvent {
Ime(Ime),
/// The pointer has moved on the window.
///
/// Should be emitted regardless of window focus.
PointerMoved {
device_id: Option<DeviceId>,
@@ -184,6 +186,8 @@ pub enum WindowEvent {
},
/// The pointer has entered the window.
///
/// Should be emitted regardless of window focus.
PointerEntered {
device_id: Option<DeviceId>,
@@ -209,6 +213,8 @@ pub enum WindowEvent {
},
/// The pointer has left the window.
///
/// Should be emitted regardless of window focus.
PointerLeft {
device_id: Option<DeviceId>,