diff --git a/source/funkin/ui/options/PreferencesMenu.hx b/source/funkin/ui/options/PreferencesMenu.hx index e149ac17b..6433c1dba 100644 --- a/source/funkin/ui/options/PreferencesMenu.hx +++ b/source/funkin/ui/options/PreferencesMenu.hx @@ -65,7 +65,6 @@ class PreferencesMenu extends Page createPrefDescription(); camFollow = new FlxObject(FlxG.width / 2, 0, 140, 70); - if (items != null) camFollow.y = items.selectedItem.y; menuCamera.follow(camFollow, null, 0.085); var margin = 160; @@ -73,7 +72,6 @@ class PreferencesMenu extends Page menuCamera.minScrollY = 0; items.onChange.add(function(selected) { - camFollow.y = selected.y; itemDesc.text = preferenceDesc[items.selectedIndex]; }); @@ -204,6 +202,9 @@ class PreferencesMenu extends Page { super.update(elapsed); + // Positions the camera to the selected item. + if (items != null) camFollow.y = items.selectedItem.y; + // Indent the selected item. items.forEach(function(daItem:TextMenuItem) { var thyOffset:Int = 0;