mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Design attempt
This commit is contained in:
parent
75dc1c5944
commit
8cf588b26d
@ -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 New Issue
Block a user