Fixed #113 - scroll bouncing regardless of window size, fixes pull to refresh

This commit is contained in:
Max Lynch
2013-11-11 16:54:01 -06:00
parent 2ffb925a97
commit 262a4cc9a8
6 changed files with 21 additions and 35 deletions

View File

@ -463,6 +463,7 @@
var parentWidth = this.el.parentNode.offsetWidth;
var parentHeight = this.el.parentNode.offsetHeight;
/*
var maxX = Math.min(0, (-totalWidth + parentWidth));
var maxY = Math.min(0, (-totalHeight + parentHeight));
@ -470,6 +471,7 @@
if((this.isHorizontalEnabled && maxX == 0) || (this.isVerticalEnabled && maxY == 0)) {
return;
}
*/
this.x = scrollLeft;
this.y = scrollTop;