use mousedown event for palette clicks