Mouse capturing in color picker

I’ve made it so that when you’re dragging the bubbles around in the color pickers, other parts of the UI will not react if you accidently move the mouse over them. For example, here’s what used to happen if you held the mouse down and moved it around the picker:

colorpicker-before

Compare that to now:

colorpicker-after

This is called “mouse capturing” and with this change I haven’t done a perfect job at simulating it. Notably, if you’re dragging the bubble and (while your mouse is held down) move your mouse outside of the color picker and then back inside of it, you will have to click again to continue moving the bubble.

I’ll hopefully come back and more thoroughly solve this problem, but this is enough for now because I’m just doing the pre-work necessary to implement an eye dropper feature. Stay tuned.