1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-15 01:34:26 +02:00

bump gocui again

This commit is contained in:
Jesse Duffield
2021-02-11 21:31:52 +11:00
parent 862ced3bd0
commit 4b1da0cf3c
2 changed files with 16 additions and 1 deletions

View File

@ -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 {