diff --git a/js/mui.class.scroll.js b/js/mui.class.scroll.js index afe11910..e06a4cae 100644 --- a/js/mui.class.scroll.js +++ b/js/mui.class.scroll.js @@ -700,7 +700,8 @@ }, resetPosition: function(time) { var x = this.x, - y = this.y; + y = this.y, + dy = this.wrapper.scrollTop; time = time || 0; if (!this.hasHorizontalScroll || this.x > 0) { @@ -715,6 +716,10 @@ y = this.maxScrollY; } + if(dy > 0){ + this.wrapper.scrollTop = 0; + y -= dy; + } if (x == this.x && y == this.y) { return false; } @@ -935,4 +940,4 @@ }); return scrollApis.length === 1 ? scrollApis[0] : scrollApis; }; -})(mui, window, document); \ No newline at end of file +})(mui, window, document);