Roo/grid/GridView.js
authoredward <edward@roojs.com>
Thu, 19 May 2016 05:08:06 +0000 (13:08 +0800)
committeredward <edward@roojs.com>
Thu, 19 May 2016 05:08:06 +0000 (13:08 +0800)
Roo/grid/GridView.js

index be816a1..b58b135 100644 (file)
@@ -826,22 +826,19 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, {
     },
 
     handleScroll : function(e){
-        Roo.log('calling herer??????');
         this.syncScroll();
         var sb = this.scroller.dom;
         this.grid.fireEvent("bodyscroll", sb.scrollLeft, sb.scrollTop);
         e.stopEvent();
     },
 
-//    handleWheel : function(e){
-//        Roo.log('calling handle Wheel???????????????????');
-//        Roo.log(this.handleWheel());
-//        var d = e.getWheelDelta();
-//        this.scroller.dom.scrollTop -= d*22;
-//        // set this here to prevent jumpy scrolling on large tables
-//        this.lockedBody.dom.scrollTop = this.mainBody.dom.scrollTop = this.scroller.dom.scrollTop;
-//        e.stopEvent();
-//    },
+    handleWheel : function(e){
+        var d = e.getWheelDelta();
+        this.scroller.dom.scrollTop -= d*22;
+        // set this here to prevent jumpy scrolling on large tables
+        this.lockedBody.dom.scrollTop = this.mainBody.dom.scrollTop = this.scroller.dom.scrollTop;
+        e.stopEvent();
+    },
 
     renderRows : function(startRow, endRow){
         // pull in all the crap needed to render rows
@@ -1461,7 +1458,6 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, {
         },this);
 
         this.scroller.on("scroll", this.handleScroll, this);
-        
         this.lockedBody.on("mousewheel", this.handleWheel, this);
         this.mainBody.on("mousewheel", this.handleWheel, this);