From 084b83de2b4b576acb8d3b4b2869eb1cd6a55459 Mon Sep 17 00:00:00 2001 From: Dave Bryand Date: Wed, 21 Jun 2017 13:27:35 -0400 Subject: [PATCH] Fix #279 - Use getBoundingClientRect for proper scaled width of slider --- src/common/createSlider.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/createSlider.jsx b/src/common/createSlider.jsx index ba8db7792..f1014065a 100644 --- a/src/common/createSlider.jsx +++ b/src/common/createSlider.jsx @@ -170,7 +170,7 @@ export default function createSlider(Component) { } return this.props.vertical ? - slider.clientHeight : slider.clientWidth; + slider.getBoundingClientRect().height : slider.getBoundingClientRect().width; } calcValue(offset) {