From 7813fc126dee96c1fe901b4ba5fe7fd252804806 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 7 Feb 2025 02:34:40 -0600 Subject: maybe fixed wierd clicks on window drag --- eventMouse.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'eventMouse.go') diff --git a/eventMouse.go b/eventMouse.go index adfbfc1..fb1a4a9 100644 --- a/eventMouse.go +++ b/eventMouse.go @@ -101,11 +101,19 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error { } } } + if tk.node.WidgetType == widget.Stdout { + tk.dumpWidget("stdout fixme drag()" + tk.labelN) + me.currentDrag = tk + tk.dragW = w - tk.gocuiSize.w0 + tk.dragH = h - tk.gocuiSize.h0 + // tk.doWidgetClick(w-tk.dragW, w-tk.dragH) + return nil + } tk.dumpWidget("mouse drag()" + tk.labelN) me.currentDrag = tk tk.dragW = w - tk.gocuiSize.w0 tk.dragH = h - tk.gocuiSize.h0 - tk.doWidgetClick(w-tk.dragW, w-tk.dragH) + // tk.doWidgetClick(w-tk.dragW, w-tk.dragH) return nil // move the msg I guess -- cgit v1.2.3