Fix an issue with FunkinButton overlap checks

Co-Authored-By: Mihai Alexandru <77043862+majigsaw77@users.noreply.github.com>
This commit is contained in:
Mihai Alexandru
2025-04-15 21:33:41 +03:00
committed by KarimAkra
parent 8a60bc26b5
commit 381bc6521c
+8 -4
View File
@@ -131,11 +131,15 @@ class FunkinButton extends FunkinSprite implements IFlxInput
{
final overlapFound:Bool = checkTouchOverlap();
if (currentInput != null && currentInput.justReleased && overlapFound) onUpHandler();
if (currentInput != null && currentInput.justReleased)
{
onUpHandler();
}
if (status != FunkinButtonStatus.NORMAL
&& (!overlapFound || (currentInput != null && currentInput.justReleased))
&& !SwipeUtil.swipeAny) onOutHandler();
if (status != FunkinButtonStatus.NORMAL && !SwipeUtil.swipeAny && (currentInput != null && !currentInput.pressed))
{
onOutHandler();
}
}
#end