mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
0f51cb9084
We used to track the pressed pointer buttons through the global function [NSEvent pressedMouseButtons]. However, it's possible that at the time a pointer press event is delivered, the pointer button is up again. To ensure a consistent view of the pointer press state, track it through the buttonNumber property on delivered events. Signed-off-by: Elias Naur <mail@eliasnaur.com>