Explorar o código

上拉回弹test3

jmx %!s(int64=8) %!d(string=hai) anos
pai
achega
7122db2cdd
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      www/webapp/framework/iscroll5/iscroll.js

+ 3 - 1
www/webapp/framework/iscroll5/iscroll.js

@@ -492,8 +492,10 @@ IScroll.prototype = {
 		newX = this.x + deltaX;
 		newX = this.x + deltaX;
 		newY = this.y + deltaY;
 		newY = this.y + deltaY;
 
 
-		if (newY < this.maxScrollY){
+		if (newY < this.maxScrollY-300){
+			alert1();
 			this.scrollTo(0, this.maxScrollY, 400);
 			this.scrollTo(0, this.maxScrollY, 400);
+			return;
 		}
 		}
 
 
 		// Slow down if outside of the boundaries
 		// Slow down if outside of the boundaries