mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 11:02:41 +03:00
Bump gocui
This commit is contained in:
7
vendor/github.com/jesseduffield/gocui/tcell_driver.go
generated
vendored
7
vendor/github.com/jesseduffield/gocui/tcell_driver.go
generated
vendored
@@ -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 {
|
||||
|
Reference in New Issue
Block a user