Design attempt
This commit is contained in:
parent
75dc1c5944
commit
8cf588b26d
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue