Browse Source

上拉回弹test2

jmx 8 years ago
parent
commit
b1d536665a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      www/webapp/o2o/js/page/home.js

+ 4 - 0
www/webapp/o2o/js/page/home.js

@@ -248,7 +248,11 @@ define(['$', 'template', 'IScroll', 'product', 'user', 'native', 'config'], func
                         pageData.scroll = new IScroll('#homeScroll', {
                             preventDefaultException: {className: /(^|\s)home-content(\s|$)/},
                             onScrollMove: function () {
+                                console.log(this.y);
+                                console.log(this.maxScrollY);
+                                console.log(this.pointY);
                                 if (this.y<this.maxScrollY && this.pointY < 1){
+                                    console.log('???????????????????????');
                                     this.scrollTo(0, this.maxScrollY, 400);
                                 }
                             }