Set cursor position on LeftClick only

pull/224/head
Simon Roberts 3 years ago
parent b621debf21
commit 8fa9cc2554
No known key found for this signature in database
GPG Key ID: 0F30F99E6B771FD4

@ -567,6 +567,13 @@ func (ct *Cointop) MouseRelease() error {
// MouseLeftClick is called on mouse left click event
func (ct *Cointop) MouseLeftClick() error {
v, x, y, err := ct.g.GetViewRelativeMousePosition(ct.g.CurrentEvent)
if err != nil {
return err
}
log.Debugf("XXX MouseLeftClick %s %d,%d", v.Name(), x, y)
ct.g.SetCursorFromCurrentMouseEvent()
return nil
}

Loading…
Cancel
Save