DrChai / react-native-rheostat

inspired by Airbnb's rheostat, a powerful slider with assorted data visualized charts
MIT License
117 stars 18 forks source link

Handlers can land in-between snap points #1

Closed mccjul closed 3 years ago

mccjul commented 5 years ago

When you try to move a handler next to the other, the handler can snap in between specified snap points.

If you try on the example, drag one handler next to the other to achieve this bug.

DrChai commented 5 years ago

@mccjul By default, a handler cannot overlap with the next handle more than half of the slider width. so it could be stopped in between of snap points.

therafi commented 5 years ago

Feels weird, though. Expected behavior would be that the handle only stops at snap points. So if it is too close to the other handle, it should go back to the closest valid snap point, instead of stopping between snap points.

DrChai commented 3 years ago

fixed from https://github.com/DrChai/react-native-rheostat/commit/3a1331afffafb730abbbc994f484c7e7c921acb0