瀏覽代碼

上拉回弹test3

jmx 8 年之前
父節點
當前提交
037c24a9d4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      www/webapp/framework/iscroll5/iscroll.js

+ 2 - 2
www/webapp/framework/iscroll5/iscroll.js

@@ -492,10 +492,10 @@ IScroll.prototype = {
 		newX = this.x + deltaX;
 		newY = this.y + deltaY;
 
-		if (newY < this.maxScrollY && this.pointY < 1){
+		if (newY < this.maxScrollY && this.pointY < 1000){
 			this.scrollTo(0, this.maxScrollY, 400);
 		}
-		
+
 		// Slow down if outside of the boundaries
 		if ( newX > 0 || newX < this.maxScrollX ) {
 			newX = this.options.bounce ? this.x + deltaX / 3 : newX > 0 ? 0 : this.maxScrollX;