@@ -406,6 +411,7 @@ class CustomColorPicker {
// Palette UI refs
this.paletteSelect = this.container.querySelector("#palette-select");
this.paletteGrid = this.container.querySelector(".color-palette");
+ this.dragHandle = this.container.querySelector(".color-picker-drag-handle");
// Build dropdown options + render default swatches before events bind
this._initPaletteUI();
@@ -422,6 +428,7 @@ class CustomColorPicker {
this.drawColorWheel();
this.drawHueSlider();
this.setupLightnessCanvasScaling();
+ this.makePopupDraggable();
}
_initPaletteUI() {
@@ -456,8 +463,8 @@ class CustomColorPicker {
const label = translate(c.name) || c.hex;
const hex = c.hex;
return `
-