I implemented spectrum color picker, and I am trying to add a double click event to the palettes. (The one that has the predefined colors, the class name is: sp-thumb-el
.) I added the following code after line 476:
paletteContainer.on("dblclick", ".sp-thumb-el", function (){
console.log("you Double Clicked");
});
And nothing happens when I double click. What am I doing wrong and how can I fix it?