summaryrefslogtreecommitdiff
path: root/eventMouse.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-07 02:34:40 -0600
committerJeff Carr <[email protected]>2025-02-07 02:34:40 -0600
commit7813fc126dee96c1fe901b4ba5fe7fd252804806 (patch)
treecc49e620ddd597cc5f38398592518f5dff324e45 /eventMouse.go
parentfb3c16707d72d41cbb92c2392f36dee76fa36936 (diff)
maybe fixed wierd clicks on window drag
Diffstat (limited to 'eventMouse.go')
-rw-r--r--eventMouse.go10
1 files changed, 9 insertions, 1 deletions
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