From 1918dcbbdec3da55790314cb76fd1b1741b6586f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 6 Feb 2025 14:19:43 -0600 Subject: [PATCH] no output except 'mouse drag()' --- debug.go | 4 ++-- eventMouse.go | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/debug.go b/debug.go index 47765a0..f2b2f81 100644 --- a/debug.go +++ b/debug.go @@ -76,13 +76,13 @@ func (tk *guiWidget) dumpWidget(s string) { } var end string if tk.node.WidgetType == widget.Box { - end = fmt.Sprintf("%5s %-8s %s", tk.cuiName, tk.node.WidgetType, tk.node.State.Direction.String()) + end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, tk.node.State.Direction.String()) } else { curval := tk.String() if curval == "" { curval = tk.node.GetLabel() } - end = fmt.Sprintf("%5s %-8s %s", tk.cuiName, tk.node.WidgetType, tk.String()) + end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, tk.String()) } log.Log(GOCUI, s1, s, end) } diff --git a/eventMouse.go b/eventMouse.go index 09cfa6e..a83dcf5 100644 --- a/eventMouse.go +++ b/eventMouse.go @@ -20,7 +20,6 @@ func mouseUp(g *gocui.Gui, v *gocui.View) error { } */ - log.Info("mouseUp() setting me.globalMouseDown = false") me.globalMouseDown = false me.currentDrag = nil @@ -33,7 +32,6 @@ func mouseUp(g *gocui.Gui, v *gocui.View) error { // widget was underneath so you can active // the right response for the toolkit user's app func mouseDown(g *gocui.Gui, v *gocui.View) error { - log.Info("mouseDown() setting globalMouseDown = true") me.globalMouseDown = true w, h := g.MousePosition() @@ -90,7 +88,7 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error { } } } - tk.dumpWidget("mouseDown() drag") + tk.dumpWidget("mouse drag()") me.currentDrag = tk tk.dragW = w - tk.gocuiSize.w0 tk.dragH = h - tk.gocuiSize.h0