summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-01 21:59:48 -0600
committerJeff Carr <[email protected]>2025-02-01 21:59:48 -0600
commit4a8fb6ab224e4b4c126f72be77abb1affc85e362 (patch)
tree6c16c2ade1cab2a0a3f7af43de0c25361183bb1b
parentac9c6617e3f70ff53198793806811bc28198060f (diff)
well, this needs more thought
-rw-r--r--eventMouse.go5
-rw-r--r--structs.go2
2 files changed, 4 insertions, 3 deletions
diff --git a/eventMouse.go b/eventMouse.go
index 2385ee9..9132a48 100644
--- a/eventMouse.go
+++ b/eventMouse.go
@@ -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
}
diff --git a/structs.go b/structs.go
index 939b7e7..67011e2 100644
--- a/structs.go
+++ b/structs.go
@@ -76,7 +76,7 @@ type config struct {
// deprecate these
var (
initialMouseX, initialMouseY, xOffset, yOffset int
- msgMouseDown bool
+ // msgMouseDown bool
)
// this is the gocui way