Browse Source

上拉回弹test3

jmx 8 năm trước cách đây
mục cha
commit
037c24a9d4
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;