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

View File

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