Skip to content

Commit

Permalink
[Slider] Fix for IE11 (mui#11727)
Browse files Browse the repository at this point in the history
  • Loading branch information
epodivilov authored and Joe Shelby committed Jul 14, 2018
1 parent 9aa207e commit 9655c98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/material-ui-lab/src/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ function roundToStep(number, step) {
}

function getOffset(node) {
const { scrollY, scrollX } = global;
const { pageYOffset, pageXOffset } = global;
const { left, top } = node.getBoundingClientRect();

return {
top: top + scrollY,
left: left + scrollX,
top: top + pageYOffset,
left: left + pageXOffset,
};
}

Expand Down

0 comments on commit 9655c98

Please sign in to comment.