mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
app: [macOS] handle middle mouse button correctly
NSView only has events for left, right, and other. Also, the Go side wasn't actually checking for buttons other than left and right. Signed-off-by: Dominik Honnef <dominik@honnef.co>
This commit is contained in:
committed by
Chris Waldon
parent
f437aaf359
commit
14bab8efae
@@ -523,6 +523,8 @@ func gio_onMouse(view, evt C.CFTypeRef, cdir C.int, cbtn C.NSInteger, x, y, dx,
|
||||
btn = pointer.ButtonPrimary
|
||||
case 1:
|
||||
btn = pointer.ButtonSecondary
|
||||
case 2:
|
||||
btn = pointer.ButtonTertiary
|
||||
}
|
||||
var typ pointer.Type
|
||||
switch cdir {
|
||||
|
||||
Reference in New Issue
Block a user