vue-color
vue-color copied to clipboard
Emit change event
Currently, only input events are being emitted, so listeners to that event cause updates every frame while a slider is being dragged around (without using some kind of debounce solution). It would be great if a change event were emitted only after each drag operation completes.
Thanks for your feedback.
It would be great if a change event were emitted only after each drag operation completes.
We will implement it in the next big release 3.0, maybe next month.
Hi @linx4200! Is there any deadline or maybe roadmap of new versions releases ?
hi Is there any improvement in this issue?
i need this update...
As a work around you can always use your own debounce in the input callback
<sketch-picker
@input="updateValue"
:value="colors">
</sketch-picker>
data() {
return {
timeout: null,
}
}
methods: {
updateValue(value) {
clearTimeout(this.timeout);
this.timeout = setTimeout(() => {
// run code here
}, 250);
}
}