mirror of
https://github.com/jroimartin/gocui.git
synced 2025-05-08 19:29:28 +08:00
do not create a mouse event on hover
This commit is contained in:
parent
c4e374aa77
commit
df403d2beb
@ -211,6 +211,8 @@ func pollEvent() GocuiEvent {
|
||||
}
|
||||
|
||||
switch dragState {
|
||||
case NOT_DRAGGING:
|
||||
return GocuiEvent{Type: eventNone}
|
||||
// if we haven't released the left mouse button and we've moved the cursor then we're dragging
|
||||
case MAYBE_DRAGGING:
|
||||
if x != lastX || y != lastY {
|
||||
|
Loading…
x
Reference in New Issue
Block a user