mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-04 00:46:33 +00:00
core: send mouse motion events if motion tracking and button pressed
This commit is contained in:
@@ -132,6 +132,11 @@ pub const MouseEvents = enum(u3) {
|
||||
normal = 2, // 1000
|
||||
button = 3, // 1002
|
||||
any = 4, // 1003
|
||||
|
||||
/// Returns true if this event sends motion events.
|
||||
pub fn motion(self: MouseEvents) bool {
|
||||
return self == .button or self == .any;
|
||||
}
|
||||
};
|
||||
|
||||
/// The format of mouse events when enabled.
|
||||
|
Reference in New Issue
Block a user