From b4022364610db552a6846d0441c84068894f24fa Mon Sep 17 00:00:00 2001 From: ChrisArasin Date: Mon, 19 Feb 2024 17:08:22 -0500 Subject: [PATCH] fix(NavigatioManager): rename shouldStopSmooth to shouldSmoothOverride --- .../src/components/NavigationManager/NavigationManager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@lightningjs/ui-components/src/components/NavigationManager/NavigationManager.js b/packages/@lightningjs/ui-components/src/components/NavigationManager/NavigationManager.js index 7f4cb82ee..1bd456785 100644 --- a/packages/@lightningjs/ui-components/src/components/NavigationManager/NavigationManager.js +++ b/packages/@lightningjs/ui-components/src/components/NavigationManager/NavigationManager.js @@ -308,8 +308,8 @@ export default class NavigationManager extends FocusManager { // can be overwritten _performRender() {} - _appendItem(item, shouldStopSmooth = true) { - this.shouldSmooth = !shouldStopSmooth; + _appendItem(item, shouldSmoothOverride) { + this.shouldSmooth = shouldSmoothOverride ?? false; item.parentFocus = this.hasFocus(); item = this.Items.childList.a(item); @@ -334,7 +334,7 @@ export default class NavigationManager extends FocusManager { (lastChild.extraItemSpacing || 0) + this.style.itemSpacing; - const appended = this._appendItem(item, false); + const appended = this._appendItem(item, true); // Update w/o recalculating whole layout appended[axis] = nextPosition;