jaames / iro.js

🎨 Modular color picker widget for JavaScript, with support for a bunch of color formats
https://iro.js.org
Mozilla Public License 2.0
1.32k stars 82 forks source link

Add the option to restrict interaction with the color wheel unless the pointer event collides with the color #167

Closed mheirendt closed 3 years ago

mheirendt commented 3 years ago

On an iPhone, you can drag up from the bottom of the phone to exit an application. When the color wheel is on the bottom of the screen, a color is selected just before exiting. It would be great to be able to restrict the selection of an active color unless the pointer event is within a configured buffer of the color's position.

jaames commented 3 years ago

sorry, struggling to understand this one a little ':)

you want to be able to click somewhere on the colorpicker without the last selected handle jumping to that position? or you want a timeout on input events?

mheirendt commented 3 years ago

No worries! You got it right with the first option, basically to only allow drag and drop for the handles.

On Sat, Mar 27, 2021 at 4:56 PM James @.***> wrote:

sorry, struggling to understand this one a little ':)

you want to be able to click somewhere on the colorpicker without the last selected handle jumping to that position? or you want a timeout on input events?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jaames/iro.js/issues/167#issuecomment-808819480, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRNPPEYUES5QX2WY45B3L3TFZWDLANCNFSM4ZZ7NYPA .

jaames commented 3 years ago

ah! understood, thanks for the clarification. I think I should be able to add this in a future update as an optional feature :)