From e1f43e76df0e7b6f4e081eb0da632ded2e1c7408 Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Sun, 24 Mar 2024 00:19:24 -0700 Subject: [PATCH] fix dropdowns --- source/funkin/editors/ui/UIContextMenu.hx | 2 +- source/funkin/editors/ui/UITopMenu.hx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/editors/ui/UIContextMenu.hx b/source/funkin/editors/ui/UIContextMenu.hx index a7261389..d10b3fd9 100644 --- a/source/funkin/editors/ui/UIContextMenu.hx +++ b/source/funkin/editors/ui/UIContextMenu.hx @@ -96,7 +96,7 @@ class UIContextMenu extends MusicBeatSubstate { } public override function update(elapsed:Float) { - if (__oobDeletion && FlxG.mouse.justReleased && !bg.hoveredByChild) + if (__oobDeletion && FlxG.mouse.justPressed && !bg.hoveredByChild) close(); __oobDeletion = true; diff --git a/source/funkin/editors/ui/UITopMenu.hx b/source/funkin/editors/ui/UITopMenu.hx index 4810362d..ae78469d 100644 --- a/source/funkin/editors/ui/UITopMenu.hx +++ b/source/funkin/editors/ui/UITopMenu.hx @@ -65,7 +65,7 @@ class UITopMenuButton extends UISliceSprite { var opened = curMenu != null ? curMenu.contextMenuOpened() : false; - if(opened && FlxG.mouse.justReleased) { + if(opened && FlxG.mouse.justPressed) { __rect.x = x; __rect.y = y; __rect.width = bWidth;