Skip to content

Commit 84a6b49

Browse files
authored
Merge pull request projecthorus#13 from LukePrior/patch-4
Scroll fix
2 parents 3ed92c0 + 0283dad commit 84a6b49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/iscroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ IScroll.prototype = {
821821
},
822822

823823
scrollToElement: function (el, time, offsetX, offsetY, easing) {
824-
el = el.nodeType ? el : this.scroller.querySelector(el);
824+
el = el.nodeType ? el : document.querySelectorAll(el)[1];
825825

826826
if ( !el ) {
827827
return;

0 commit comments

Comments
 (0)