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) {
|
function onMousedown (e) {
|
||||||
var target = $(e.target);
|
var target = $(e.target);
|
||||||
var parents = target.closest();
|
var parents = target.parents();
|
||||||
var isClickOutsideWidget = !parents.is(container);
|
var isClickOutsideWidget = !parents.is(container) && !target.is(container);
|
||||||
|
|
||||||
if (isClickOutsideWidget) {
|
if (isClickOutsideWidget) {
|
||||||
hide(e);
|
hide(e);
|
||||||
@ -684,8 +684,6 @@
|
|||||||
var s = currentSaturation;
|
var s = currentSaturation;
|
||||||
var v = currentValue;
|
var v = currentValue;
|
||||||
|
|
||||||
console.log(dragHelperHeight, dragHeight);
|
|
||||||
|
|
||||||
// Where to show the little circle in that displays your current selected color
|
// Where to show the little circle in that displays your current selected color
|
||||||
var dragX = s * dragWidth;
|
var dragX = s * dragWidth;
|
||||||
var dragY = (dragHeight) - (v * dragHeight);
|
var dragY = (dragHeight) - (v * dragHeight);
|
||||||
|
Loading…
Reference in New Issue
Block a user