Skip to content

Commit

Permalink
update scroller
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Chang committed Mar 16, 2016
1 parent d0b999e commit b3d359b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions dist/react-datagrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -7338,7 +7338,7 @@ return /******/ (function(modules) { // webpackBootstrap
value: function handleWheel(event) {

var props = this.props;
// var normalizedEvent = normalizeWheel(event)
var normalizedEvent = normalizeWheel(event);

var virtual = props.virtualRendering;
debugger;
Expand All @@ -7353,8 +7353,13 @@ return /******/ (function(modules) { // webpackBootstrap
var scrollTop = props.scrollTop;
var scrollLeft = props.scrollLeft;

// var delta = normalizedEvent.pixelY
var delta = event.deltaY;
var delta;

if (IS_MAC) {
delta = event.deltaY;
} else {
delta = normalizedEvent.pixelY;
}

if (horizontal) {
if (IS_MAC) {
Expand Down
Loading

0 comments on commit b3d359b

Please sign in to comment.