Fix an issue with FunkinButton overlap checks
Co-Authored-By: Mihai Alexandru <77043862+majigsaw77@users.noreply.github.com>
This commit is contained in:
committed by
KarimAkra
parent
8a60bc26b5
commit
381bc6521c
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user