aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-12-01 15:03:37 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-12-01 15:03:37 +0200
commit403b86675d288a8082125475f87f9b1740e3480a (patch)
tree164ec5e53404d8969a77ae50ff0ccbeb02672755 /ext/mixed
parenta40f3b1c9f0c89c10e311380f3b3b9592a67d615 (diff)
fix entry scroll index 0 bug
Introduced in 4e7d08ff2c184a361622a6efaf00e21af51428a9 because the range-limited index value isn't kept in the same scope.
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/display.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index 303023be..f1829198 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -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) {