Prevent "click" events from being passed to layers underneath the canvas

[#57658772]

... ofc only if some atom passed a hit test during "mouseup" event.