fix entry scroll index 0 bug
Introduced in 4e7d08ff2c184a361622a6efaf00e21af51428a9 because the range-limited index value isn't kept in the same scope.
This commit is contained in:
parent
a40f3b1c9f
commit
403b86675d
@ -515,7 +515,7 @@ class Display {
|
||||
if (scroll !== null) {
|
||||
target = scroll;
|
||||
} else {
|
||||
target = index === 0 || entry === null ? 0 : Display.getElementTop(entry);
|
||||
target = this.index === 0 || entry === null ? 0 : Display.getElementTop(entry);
|
||||
}
|
||||
|
||||
if (smooth) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user