If you really want the div to clickable the material below, there is no decent way. A non-detrimental way could be to hide an element on mousedown and view it onmouseup:
document.body.addEventListener("mousedown", function() { getElementById("overlay").style = "display:none;" }); document.body.addEventListener("mouseup", function() { getElementById("overlay").style = "display:block;" });
However, be warned that this causes remelting with every piece, so that it will hit performance.
source share