Properly manage swipe threshold on states.

This commit is contained in:
MoonDroid
2025-07-18 02:08:46 +08:00
committed by Hundrec
parent eac940bccb
commit beb64528fb
3 changed files with 3 additions and 4 deletions
-3
View File
@@ -745,9 +745,6 @@ class PauseSubState extends MusicBeatSubState
clearAndAddMenuEntries();
updateMetadataText();
changeSelection();
#if FEATURE_TOUCH_CONTROLS
SwipeUtil.calculateSwipeThreshold(menuEntryText.members, Y);
#end
}
/**
@@ -767,7 +767,6 @@ class FreeplayState extends MusicBeatSubState
fadeDots(true);
#if FEATURE_TOUCH_CONTROLS
SwipeUtil.calculateSwipeThreshold(grpCapsules.members, Y);
FlxG.touches.swipeThreshold.x = 60;
#end
};
+3
View File
@@ -257,6 +257,9 @@ class OptionsMenu extends Page<OptionsMenuPageName>
onMenuChange(items.members[0]);
items.selectItem(OptionsState.rememberedSelectedIndex);
#if FEATURE_TOUCH_CONTROLS
FlxG.touches.swipeThreshold.y = 100;
#end
}
function onMenuChange(selected:TextMenuItem):Void