diff options
| author | Jeff Carr <[email protected]> | 2025-02-07 02:34:40 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-07 02:34:40 -0600 |
| commit | 7813fc126dee96c1fe901b4ba5fe7fd252804806 (patch) | |
| tree | cc49e620ddd597cc5f38398592518f5dff324e45 /eventMouse.go | |
| parent | fb3c16707d72d41cbb92c2392f36dee76fa36936 (diff) | |
maybe fixed wierd clicks on window drag
Diffstat (limited to 'eventMouse.go')
| -rw-r--r-- | eventMouse.go | 10 |
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 |
