Permalink
Browse files

Only defer vertical scroll. Horizontal scroll works ok without delay.

  • Loading branch information...
1 parent d1f54cd commit 7c49ea7974bd7ab1aff5fa4057a9c34ba285c3bd @etishor committed Apr 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/GridManager.js
View
@@ -34,13 +34,14 @@
var scrollLeft = e.target.scrollLeft,
scrollTop = e.target.scrollTop;
+ grid.adjustScrollLeft(scrollLeft);
+
if(scrollTimer){
clearTimeout(scrollTimer);
}
scrollTimer = setTimeout( function(){
- scrollTimer = null;
- grid.adjustScrollLeft(scrollLeft);
+ scrollTimer = null;
grid.adjustScrollTop(scrollTop);
}, 200);
});

0 comments on commit 7c49ea7

Please sign in to comment.