oli107 / material-range-bar

Android widget for selecting a range of values.
Apache License 2.0
1.68k stars 370 forks source link

Fix invalid nearestTickIndex issue #137

Closed dgelormini closed 6 years ago

dgelormini commented 6 years ago

Fixes an issue where you were able to drag a thumb outside of the valid range. Typically reproduced by tapping on the bar and dragging past the end (or beginning) of the RangeBar. Added margin to start/end of sample (easier to reproduce the issue this way)

krazykira commented 6 years ago

@dgelormini Thankyou for your work and PR. Next time kindly also add screenshot to the PR for Before Fix and After Fix. That would make it easier to see what is fixed.

Anyways i am merging this and this will be available in com.appyvet:materialrangebar:1.4.3 which will be released at the end of June 2018