summaryrefslogtreecommitdiff
path: root/eventMouse.go
diff options
context:
space:
mode:
Diffstat (limited to 'eventMouse.go')
-rw-r--r--eventMouse.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/eventMouse.go b/eventMouse.go
index 37698dc..09cfa6e 100644
--- a/eventMouse.go
+++ b/eventMouse.go
@@ -63,11 +63,11 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error {
return nil
}
tk.makeWindowActive()
- log.Info("SENDING mouseDown() to findWindowUnderMouse()")
+ // log.Info("SENDING mouseDown() to findWindowUnderMouse()")
if tk.node.WidgetType == widget.Window {
// check to see if this is a direct click on a widget
for _, tk := range tk.findByXYreal(w, h) {
- tk.dumpWidget("mouseDown()")
+ // tk.dumpWidget("mouseDown()")
if tk.node.WidgetType == widget.Button {
log.Info("SENDING CLICK TO Button")
tk.doWidgetClick(w, h)
@@ -90,6 +90,7 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error {
}
}
}
+ tk.dumpWidget("mouseDown() drag")
me.currentDrag = tk
tk.dragW = w - tk.gocuiSize.w0
tk.dragH = h - tk.gocuiSize.h0