1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-06 11:02:41 +03:00

Bump gocui

This commit is contained in:
Stefan Haller
2024-08-24 17:45:51 +02:00
parent 37f32755b5
commit 8d37f48744
6 changed files with 119 additions and 10 deletions

View File

@@ -176,6 +176,7 @@ const (
eventKey
eventResize
eventMouse
eventMouseMove // only used when no button is down, otherwise it's eventMouse
eventFocus
eventInterrupt
eventError
@@ -387,7 +388,11 @@ func (g *Gui) pollEvent() GocuiEvent {
if !wheeling {
switch dragState {
case NOT_DRAGGING:
return GocuiEvent{Type: eventNone}
return GocuiEvent{
Type: eventMouseMove,
MouseX: x,
MouseY: y,
}
// 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 {