Skip to content

Commit

Permalink
fix(NavigatioManager): rename shouldStopSmooth to shouldSmoothOverride
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisArasin committed Feb 19, 2024
1 parent b5d23d9 commit b402236
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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;
Expand Down

0 comments on commit b402236

Please sign in to comment.