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;