Skip to content

Commit

Permalink
fix(ControlRow): fix right controls to use lazyScrolling too (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
erautenberg authored Feb 29, 2024
1 parent a90457a commit 9717848
Showing 1 changed file with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ export default class ControlRow extends TitleRow {
items: itemsToAppend,
selectedIndex: this.leftControls.length,
startLazyScrollIndex: this.leftControls.length,
stopLazyScrollIndex:
this.leftControls.length + this.contentItems.length - 1
stopLazyScrollIndex: this.leftControls.length + this.items.length - 1
});
}
}
Expand Down Expand Up @@ -144,8 +143,7 @@ export default class ControlRow extends TitleRow {
}

this.patch({
stopLazyScrollIndex:
this.leftControls.length + this.contentItems.length - 1
stopLazyScrollIndex: this.leftControls.length + this.items.length - 1
});
}

Expand All @@ -163,8 +161,7 @@ export default class ControlRow extends TitleRow {
}

this.patch({
stopLazyScrollIndex:
this.leftControls.length + this.contentItems.length - 1
stopLazyScrollIndex: this.leftControls.length + this.items.length - 1
});
}
}
Expand All @@ -180,8 +177,7 @@ export default class ControlRow extends TitleRow {

this.patch({
startLazyScrollIndex: this.leftControls.length,
stopLazyScrollIndex:
this.leftControls.length + this.contentItems.length - 1
stopLazyScrollIndex: this.leftControls.length + this.items.length - 1
});
}

Expand All @@ -198,8 +194,7 @@ export default class ControlRow extends TitleRow {

this.patch({
startLazyScrollIndex: this.leftControls.length,
stopLazyScrollIndex:
this.leftControls.length + this.contentItems.length - 1
stopLazyScrollIndex: this.leftControls.length + this.items.length - 1
});
}

Expand All @@ -217,8 +212,7 @@ export default class ControlRow extends TitleRow {

this.patch({
startLazyScrollIndex: this.leftControls.length,
stopLazyScrollIndex:
this.leftControls.length + this.contentItems.length - 1
stopLazyScrollIndex: this.leftControls.length + this.items.length - 1
});
}
}
Expand All @@ -234,8 +228,7 @@ export default class ControlRow extends TitleRow {

this.patch({
startLazyScrollIndex: this.leftControls.length,
stopLazyScrollIndex:
this.leftControls.length + this.contentItems.length - 1
stopLazyScrollIndex: this.leftControls.length + this.items.length - 1
});
}

Expand Down

0 comments on commit 9717848

Please sign in to comment.