Fixed closing popup-colorpicker when dragging the scrollbar

When dragging the scrollbar, colorpickers, that are open as a popup, will close.

This is especially bad for small screens such as tablets or netbooks.

The commit delegates the click event to the html object instead of the document, so it will still trigger when clicking inside the html, but not when clicking on the scrollbar.