Skip to content

Commit

Permalink
fix(util): deltaMode being set to 0 (#5155)
Browse files Browse the repository at this point in the history
WheelEvent.deltaMode is a READONLY property, as explained https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode and by the error message my browser throws.  This should not be reset to zero.
  • Loading branch information
IvanJoukov authored and JLLeitschuh committed May 27, 2016
1 parent 4953622 commit 8e5d4c4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/js/core/services/ui-grid-util.js
Expand Up @@ -1375,8 +1375,6 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
deltaX = Math[ deltaX >= 1 ? 'floor' : 'ceil' ](deltaX / lowestDelta);
deltaY = Math[ deltaY >= 1 ? 'floor' : 'ceil' ](deltaY / lowestDelta);

event.deltaMode = 0;

// Normalise offsetX and offsetY properties
// if ($elm[0].getBoundingClientRect ) {
// var boundingRect = $(elm)[0].getBoundingClientRect();
Expand Down

0 comments on commit 8e5d4c4

Please sign in to comment.