Fix wheel scrolling on LiveGrid content
[infodrom/rico3] / minsrc / ricoLiveGrid.js
index 4087336..adabf58 100644 (file)
@@ -811,6 +811,7 @@ Rico.LiveGridMethods = {
             col.lastKeyFilter=v;
           }
           Rico.eventBind(field,'keyup',Rico.eventHandle(col,'filterKeypress'),false);
+          Rico.eventBind(field,'change',Rico.eventHandle(col,'filterKeypress'),false);
           col.filterField=field;\r
           break;\r
         case 'm':
@@ -1934,7 +1935,7 @@ Rico.LiveGridMethods = {
      if (this.scrollPluggedIn) return;
      Rico.log("pluginScroll: wheelEvent="+this.wheelEvent);
      Rico.eventBind(this.scrollDiv,"scroll",this.scrollEventFunc, false);
-     for (var t=0; t<2; t++)
+     for (var t=0; t<3; t++)
        Rico.eventBind(this.tabs[t],this.wheelEvent,this.wheelEventFunc, false);
      this.scrollPluggedIn=true;
   },
@@ -1949,7 +1950,7 @@ Rico.LiveGridMethods = {
   },
 
   handleWheel: function(e) {
-    var delta = 0;
+    var delta = 1;
     if (e.wheelDelta) {
       if (Rico.isOpera)
         delta = e.wheelDelta/120;