diff options
| author | Jeff Carr <[email protected]> | 2025-02-06 14:19:43 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-06 14:19:43 -0600 |
| commit | 1918dcbbdec3da55790314cb76fd1b1741b6586f (patch) | |
| tree | ba1c246e711b651aaf4665c682c2f556bd8797e2 | |
| parent | 5675307497e2f6b75251d394a7a669734f6d3941 (diff) | |
no output except 'mouse drag()'
| -rw-r--r-- | debug.go | 4 | ||||
| -rw-r--r-- | eventMouse.go | 4 |
2 files changed, 3 insertions, 5 deletions
@@ -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 |
