- Fix: Droplets for gradient pickers can now be double-clicked in

other browsers in addition to Firefox such as Chrome
    to allow change of color (fixes #181) (@ajinkyas);
    may be different between the browsers as a result of
    <https://github.com/w3c/uievents/issues/141>
- Builds: Update
This commit is contained in:
Brett Zamir
2019-04-03 11:31:06 +08:00
parent 0171e177cb
commit 69ea647286
10 changed files with 37 additions and 25 deletions

View File

@@ -757,7 +757,6 @@ export default function jQueryPluginJGraduate ($) {
if (curStop) curStop.setAttribute('stroke', '#000');
item.setAttribute('stroke', 'blue');
curStop = item;
curStop.parentNode.append(curStop);
// stops = $('stop');
// opac_select.val(curStop.attr('fill-opacity') || 1);
// root.append(delStop);

View File

@@ -23450,8 +23450,7 @@
function selectStop(item) {
if (curStop) curStop.setAttribute('stroke', '#000');
item.setAttribute('stroke', 'blue');
curStop = item;
curStop.parentNode.append(curStop); // stops = $('stop');
curStop = item; // stops = $('stop');
// opac_select.val(curStop.attr('fill-opacity') || 1);
// root.append(delStop);
}
@@ -27352,9 +27351,11 @@
for (var i = 0; i < color.quickList.length; i++) {
/* if default colors are hex strings, change them to color objects */
if (_typeof(color.quickList[i]).toString().toLowerCase() === 'string') color.quickList[i] = new Color({
hex: color.quickList[i]
});
if (_typeof(color.quickList[i]).toString().toLowerCase() === 'string') {
color.quickList[i] = new Color({
hex: color.quickList[i]
});
}
var _alpha = color.quickList[i].val('a');
@@ -27448,6 +27449,7 @@
for (var i = 0; i < List.length; i++) {
if (List[i] === that) {
List.splice(i, 1);
i--; // Decrement to ensure we don't miss next item (lgtm warning)
}
}
}