mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
type conversion needed in addMouse (#201)
This commit is contained in:
parent
fb86491ad9
commit
67aa69f4c3
@ -1302,7 +1302,7 @@ func AddMouse(btn string, x ...int16) bool {
|
|||||||
ct = true
|
ct = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if ct && e.Kind == hook.MouseDown && e.Button == ukey {
|
if ct && e.Kind == hook.MouseDown && int(e.Button) == ukey {
|
||||||
hook.End()
|
hook.End()
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user