zillow / react-slider

Accessible, CSS agnostic, slider component for React.
https://zillow.github.io/react-slider
MIT License
892 stars 231 forks source link

Problem with getting slider's length #44

Closed durkiewicz closed 5 years ago

durkiewicz commented 9 years ago

The slider doesn't behave correctly when it's contained in an element that expands on some user action. By "expands" I mean a transition that involves transform: scale(...) CSS property.

This issue is a bit similar to this: https://github.com/mpowaga/react-slider/issues/15 because the root cause of the issue is that the size in component's state is not up to date.

electerious commented 9 years ago

Experiencing the same problem. My slider is inside a transformed div (transform: translateX(-100%)). Clicking the slider sets the handler to the wrong position. I think that the position calculation of clicks is incorrect because of transform.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.