This commit is contained in:
InventorXtreme 2024-04-21 21:43:05 -04:00
parent bc2fd8bd0d
commit 625121aa5b

View file

@ -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
}