diff --git a/source/funkin/mobile/ui/FunkinButton.hx b/source/funkin/mobile/ui/FunkinButton.hx index ce8798f19..bfd61b2ed 100644 --- a/source/funkin/mobile/ui/FunkinButton.hx +++ b/source/funkin/mobile/ui/FunkinButton.hx @@ -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) {