From 57ebeb25e4b7da198eeeed1fb401b143b815d2bd Mon Sep 17 00:00:00 2001 From: fabs Date: Sun, 8 Jun 2025 04:06:30 +0100 Subject: [PATCH] i feel like this makes more sense --- source/funkin/mobile/ui/FunkinButton.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {