From 403b86675d288a8082125475f87f9b1740e3480a Mon Sep 17 00:00:00 2001 From: siikamiika Date: Sun, 1 Dec 2019 15:03:37 +0200 Subject: fix entry scroll index 0 bug Introduced in 4e7d08ff2c184a361622a6efaf00e21af51428a9 because the range-limited index value isn't kept in the same scope. --- ext/mixed/js/display.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3