I use your HexColorPicker in modal, which can be swiped down on mobile devices. When I start dragging pointer down, modal thinks that I wanna swipe it. So I added event listener on the div container of HexColorPicker, which stops propagation of touch events. But this disables all the functionality of HexColorPicker. I suggest you to add second argument event to the onChange prop, like in react-color. If there is another way of avoiding this situation, write it down, if you can). Thanks for your time.
I use your HexColorPicker in modal, which can be swiped down on mobile devices. When I start dragging pointer down, modal thinks that I wanna swipe it. So I added event listener on the div container of HexColorPicker, which stops propagation of
touch
events. But this disables all the functionality of HexColorPicker. I suggest you to add second argumentevent
to theonChange
prop, like in react-color. If there is another way of avoiding this situation, write it down, if you can). Thanks for your time.