Skip to content

Commit

Permalink
fix(uiGridRenderContainer): Don't reverse X delta
Browse files Browse the repository at this point in the history
Should fix reversed horizontal scrolling
  • Loading branch information
c0bra committed Feb 16, 2015
1 parent 7ae8dea commit 7a0e075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/core/directives/ui-grid-render-container.js
Expand Up @@ -135,7 +135,7 @@
scrollEvent.y = { percentage: scrollYPercentage, pixels: scrollYAmount };
}
if (event.deltaX !== 0) {
var scrollXAmount = event.deltaX * -1 * event.deltaFactor;
var scrollXAmount = event.deltaX * event.deltaFactor;

// Get the scroll percentage
var scrollLeft = gridUtil.normalizeScrollLeft(containerCtrl.viewport);
Expand Down Expand Up @@ -244,7 +244,7 @@
styles['margin-right'] = $scope.colContainer.columnOffset + 'px';
}
else {
styles['margin-left'] = $scope.colContainer.columnOffset + 'px';
styles['margin-left'] = $scope.colContainer.columnOffset + 'px';del
}
}

Expand Down

1 comment on commit 7a0e075

@agusl88
Copy link

@agusl88 agusl88 commented on 7a0e075 Apr 6, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo error in line 247? @c0bra

Please sign in to comment.