diff --git a/packages/material-ui-lab/src/Slider/Slider.js b/packages/material-ui-lab/src/Slider/Slider.js index 4c4a5cfc865301..ba48b9d3d2e93f 100644 --- a/packages/material-ui-lab/src/Slider/Slider.js +++ b/packages/material-ui-lab/src/Slider/Slider.js @@ -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, }; }