summaryrefslogtreecommitdiff
path: root/eventMouseMove.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-05 15:04:40 -0600
committerJeff Carr <[email protected]>2025-02-05 15:04:40 -0600
commit83e9787e753242ec5418e0228f76356e4e655128 (patch)
treee1575b42f7475956b31828c80c9dc9ee93caf96d /eventMouseMove.go
parent85eda6aeb8f6958fc34f677c26e9bfe726382da4 (diff)
window drag offset works
Diffstat (limited to 'eventMouseMove.go')
-rw-r--r--eventMouseMove.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eventMouseMove.go b/eventMouseMove.go
index 0bfec5b..e7c8b46 100644
--- a/eventMouseMove.go
+++ b/eventMouseMove.go
@@ -93,7 +93,7 @@ func (tk *guiWidget) moveNew() {
w, h := me.baseGui.MousePosition()
if tk.node.WidgetType == widget.Window {
tk.DrawAt(w, h)
- tk.redrawWindow(w-2, h-2) // TODO: fix these hard coded things with offsets
+ tk.redrawWindow(w-tk.dragW, h-tk.dragH) // TODO: fix these hard coded things with offsets
// tk.dumpWidget(fmt.Sprintf("move(%dx%d) %s WIN", w, h, tk.cuiName))
return
}