ivanvmat / color-picker

:droplet: Flat and simple color-picker library. No dependencies, no jquery.
https://ivanvmat.github.io/color-picker/
MIT License
20 stars 5 forks source link

Debouncing multiple events on mouseclick #5

Open tinitaet opened 2 years ago

tinitaet commented 2 years ago

Hi Ivan when clicking on the color wheel in a webbrowser multiple "picker.on('change', function(color))" events get triggered within ~20ms. This is not the case when typing in new numbers. It is not an issue with physical keeping the button pressed; I made some tests with an clicking script. Is there a way to debounce or otherwise mitigate this behavior?

ivanvmat commented 1 year ago

Hi, fixed in the new version.