Design attempt

This commit is contained in:
jdescottes 2013-11-27 23:46:07 +01:00
parent 75dc1c5944
commit 8cf588b26d

View File

@ -524,8 +524,8 @@
function onMousedown (e) {
var target = $(e.target);
var parents = target.closest();
var isClickOutsideWidget = !parents.is(container);
var parents = target.parents();
var isClickOutsideWidget = !parents.is(container) && !target.is(container);
if (isClickOutsideWidget) {
hide(e);
@ -684,8 +684,6 @@
var s = currentSaturation;
var v = currentValue;
console.log(dragHelperHeight, dragHeight);
// Where to show the little circle in that displays your current selected color
var dragX = s * dragWidth;
var dragY = (dragHeight) - (v * dragHeight);