summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-01 21:01:03 -0600
committerJeff Carr <[email protected]>2025-02-01 21:01:03 -0600
commitd5d02620133ef27303ab6af351e30cd70470de46 (patch)
tree580c432d5cf69aef2ec5c8b0e398e6cc297be51a
parent3125bbb2580a66bf68ac8419213ec583dd625149 (diff)
hmm. keep trying to debug dragging views
-rw-r--r--eventMouseMove.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/eventMouseMove.go b/eventMouseMove.go
index b7e35b1..0824faf 100644
--- a/eventMouseMove.go
+++ b/eventMouseMove.go
@@ -37,6 +37,7 @@ func mouseMove(g *gocui.Gui) {
// log.Info("msgMouseDown == true")
// plugin will segfault if you don't keep this inside a check for msgMouseDown
// don't move this code out of here
+ var found bool = false
for _, tk := range findByXY(w, h) {
if tk.node.WidgetType == widget.Stdout {
tk.moveNew(g)
@@ -46,6 +47,10 @@ func mouseMove(g *gocui.Gui) {
tk.moveNew(g)
return
}
+ found = true
+ }
+ if !found {
+ log.Info(fmt.Sprintf("findByXY() empty. nothing to move at (%d,%d)", w, h))
}
}