I didn't go for the solution of replacing the second argument of the on-change handlers with an array of indices. I thought someone may be interested in differentiating the thumb that the user interacted with directly from the thumbs that moved due to pearling.
So I added a third argument to onChange and onAfterChange: an array with only the thumbs that were pushed because of pearling. Note that in onChange, only the newly pushed thumbs are listed, whereas in onAfterChange, it's all the thumbs that were pushed throughout the user's entire interaction with the slider. Of course, since thumbs are pushed after onBeforeChange is called, this handler does not receive this third argument.
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.
Fix #229
I didn't go for the solution of replacing the second argument of the on-change handlers with an array of indices. I thought someone may be interested in differentiating the thumb that the user interacted with directly from the thumbs that moved due to pearling.
So I added a third argument to
onChange
andonAfterChange
: an array with only the thumbs that were pushed because of pearling. Note that inonChange
, only the newly pushed thumbs are listed, whereas inonAfterChange
, it's all the thumbs that were pushed throughout the user's entire interaction with the slider. Of course, since thumbs are pushed afteronBeforeChange
is called, this handler does not receive this third argument.