diff options
| author | Jeff Carr <[email protected]> | 2025-02-08 08:07:03 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-08 08:07:03 -0600 |
| commit | 0aa82f5ba56f9e393e681971115881cc185f20c8 (patch) | |
| tree | 74c5e8276da5e4fe29ea682c44a1f0f6aefca3df /eventMouseClick.go | |
| parent | 83b4d7142a32230e5f037758ebe0f8f279fed7f5 (diff) | |
trying to delay on mouse drag
Diffstat (limited to 'eventMouseClick.go')
| -rw-r--r-- | eventMouseClick.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eventMouseClick.go b/eventMouseClick.go index d2562c0..675aeac 100644 --- a/eventMouseClick.go +++ b/eventMouseClick.go @@ -31,6 +31,8 @@ func (tk *guiWidget) DeleteNode() { func (tk *guiWidget) doWindowClick() { w, h := me.baseGui.MousePosition() + tk.dumpWidget(fmt.Sprintf("doWindowClick(%d,%d)", w, h)) + // compare the mouse location to the 'X' indicator to close the window if tk.gocuiSize.inRect(w, h) { offset := w - tk.gocuiSize.w1 @@ -57,7 +59,6 @@ func (tk *guiWidget) doWindowClick() { } } else { tk.window.collapsed = false - // tk.dumpWidget(fmt.Sprintf("No (%d,%d)", w, h)) } // if there is a current window, hide it if me.currentWindow != nil { @@ -75,6 +76,7 @@ func (tk *guiWidget) doWindowClick() { // the debugging is way way better now with it being visible in the Stdout window // so now it's possible to redo all this and make it better func (tk *guiWidget) doWidgetClick(w int, h int) { + tk.dumpWidget(fmt.Sprintf("doWidgetClick(%d,%d)", w, h)) switch tk.node.WidgetType { case widget.Window: tk.doWindowClick() |
