Properly manage swipe threshold on states.
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user