fix entry scroll index 0 bug
Introduced in 4e7d08ff2c
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) {
|
if (scroll !== null) {
|
||||||
target = scroll;
|
target = scroll;
|
||||||
} else {
|
} else {
|
||||||
target = index === 0 || entry === null ? 0 : Display.getElementTop(entry);
|
target = this.index === 0 || entry === null ? 0 : Display.getElementTop(entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (smooth) {
|
if (smooth) {
|
||||||
|
Loading…
Reference in New Issue
Block a user