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:
siikamiika 2019-12-01 15:03:37 +02:00
parent a40f3b1c9f
commit 403b86675d

View File

@ -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) {