i feel like this makes more sense

This commit is contained in:
fabs
2025-06-08 04:06:30 +01:00
parent 7fd1d312d7
commit 57ebeb25e4
+3 -3
View File
@@ -122,9 +122,9 @@ class FunkinButton extends FunkinSprite implements IFlxInput
var touchID:Int = -1;
/**
* Whether the funkin button is a back button, button shouldn't call onDownHandler() on touch.pressed.
* Whether the button should skip calling onDownHandler() on touch.pressed.
*/
public var isBackButton:Bool = false;
public var ignoreDownHandler:Bool = false;
/**
* Creates a new `FunkinButton` object.
@@ -330,7 +330,7 @@ class FunkinButton extends FunkinSprite implements IFlxInput
onDownHandler();
}
else if (status == FunkinButtonStatus.NORMAL && !isBackButton)
else if (status == FunkinButtonStatus.NORMAL && !ignoreDownHandler)
{
if (newInput.pressed)
{