Open jschen5 opened 4 years ago
Made a PR that adds this behavior #113
Ahh, I see. I just looked at the PR. Yeah, I get what you're saying. I'll take a look at this.
Just saw the comment you left in #113. That makes sense! I'll update the pr and fork one of the demos as well.
Problem or feature description:
onSlideStart
is not called if the drag starts from clicking on the track or rail.Steps to reproduce (for problems):
Bind an
onSlideStart
andonSlideEnd
handler on a slider. Clicking on the rail or track does not callonSlideStart
, but it does callonSlideEnd
. This seems to be becauseonSlideStart
is only calledonMouseDown
of a handle, even though a drag can start from the track itself.Possible solution:
Not sure what the best thing to do here is, but I feel like we could just call
onSlideStart
in the track/rail click handler once we've moved the handles here.Versions (for problems):
React-Compound-Slider: 2.5.0 (and most likely 3.0.0-beta.1)