From 0283dadbe947390a4cca6c011b1518ed12b43f8e Mon Sep 17 00:00:00 2001 From: Luke Prior <22492406+LukePrior@users.noreply.github.com> Date: Sat, 26 Jun 2021 21:11:41 +1000 Subject: [PATCH] Scroll fix --- js/iscroll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/iscroll.js b/js/iscroll.js index bebac01..fbbb42a 100644 --- a/js/iscroll.js +++ b/js/iscroll.js @@ -821,7 +821,7 @@ IScroll.prototype = { }, scrollToElement: function (el, time, offsetX, offsetY, easing) { - el = el.nodeType ? el : this.scroller.querySelector(el); + el = el.nodeType ? el : document.querySelectorAll(el)[1]; if ( !el ) { return;