From 625121aa5ba9279ffd2c943aeedb5277ce59b739 Mon Sep 17 00:00:00 2001 From: InventorXtreme Date: Sun, 21 Apr 2024 21:43:05 -0400 Subject: [PATCH] erm --- window.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window.go b/window.go index 9f6d7d9..bfb10bd 100644 --- a/window.go +++ b/window.go @@ -48,7 +48,7 @@ func (win *RayGuiWindow) Resize(x, y int) { } func (win *RayGuiWindow) DidStartMoveDrag() bool { - if win.IsTouchingRegion(rl.GetMousePosition(), rl.NewRectangle(0, -20, float32(win.Size.X), 20)) { + if win.IsTouchingRegion(rl.GetMousePosition(), rl.NewRectangle(0, -win.GetBorderRect().Height, float32(win.Size.X), win.GetBorderRect().Height)) { if rl.IsMouseButtonPressed(rl.MouseButtonLeft) { return true }