uikit icon indicating copy to clipboard operation
uikit copied to clipboard

Have color picker bind to $("html") for mousemove/up

Open collin opened this issue 13 years ago • 3 comments

This way a drag initiated inside the canvas still work when you end up going "outside" the lines of the color picker. Otherwise it can be tedious to get to the very edge of the color picker.

collin avatar Feb 03 '12 18:02 collin

we should add some bounds checking too since it kinda goes wonky if you drag out, it would be a lot nicer if we lock it in the rect

tj avatar Feb 03 '12 18:02 tj

Yes, maybe use Math.min and Math.max in the update function to keep things inside the canvas? Or is there a better place to put it?

collin avatar Feb 03 '12 18:02 collin

yup that should be fine

tj avatar Feb 03 '12 18:02 tj