uikit
uikit copied to clipboard
Have color picker bind to $("html") for mousemove/up
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.
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
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?
yup that should be fine