In the old code, onChange event will be triggered on every mouse move. But this behavior will not be as expected in some scenario. So I added a property triggerOnDragging to control it in different mode. By default it will be false as the onChange event will only be trigger when mouse is released. When set it to true, every movement of dragging mouse will trigger onChange.
Please makes sure these boxes are checked before submitting your PR, thank you!
[x] Make sure you are merging your commits to master branch.
[x] Add some descriptions and refer relative issues for you PR.
[x] Rebase your commits to make your pull request meaningful.
[x] Make sure that your changes pass npm test, npm run lint and npm run build.
In the old code,
onChange
event will be triggered on every mouse move. But this behavior will not be as expected in some scenario. So I added a propertytriggerOnDragging
to control it in different mode. By default it will befalse
as theonChange
event will only be trigger when mouse is released. When set it totrue
, every movement of dragging mouse will triggeronChange
.Please makes sure these boxes are checked before submitting your PR, thank you!
master
branch.npm test
,npm run lint
andnpm run build
.Changes in this pull request
triggerOnDragging
config for Slider.