well, this needs more thought

This commit is contained in:
Jeff Carr 2025-02-01 21:59:48 -06:00
parent ac9c6617e3
commit 4a8fb6ab22
2 changed files with 4 additions and 3 deletions

View File

@ -45,6 +45,7 @@ func mouseUp(g *gocui.Gui, v *gocui.View) error {
// the right response for the toolkit user's app
func mouseDown(g *gocui.Gui, v *gocui.View) error {
mx, my := g.MousePosition()
log.Info("mouseDown() setting globalMouseDown = true")
me.globalMouseDown = true
var found bool = false
@ -69,7 +70,7 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error {
log.Info("IGNORE LABLE")
found = false
log.Info("setting mousedown to true")
msgMouseDown = true
// msgMouseDown = true
return nil
}
/*
@ -137,6 +138,6 @@ func msgDown(g *gocui.Gui, v *gocui.View) error {
yOffset = initialMouseY - vy
}
log.Info("setting mousedown to true")
msgMouseDown = true
// msgMouseDown = true
return nil
}

View File

@ -76,7 +76,7 @@ type config struct {
// deprecate these
var (
initialMouseX, initialMouseY, xOffset, yOffset int
msgMouseDown bool
// msgMouseDown bool
)
// this is the gocui way