Basically, I wish to overlay a canvas over some HTML but still be able to click elements below, say a button or a link
I am able to get the x-y coordinate of the click on the canvas. Is there a way to trigger the button click below programmatically with the x-y coordinate?
canvas { pointer-events: none; }in the CSS). Otherwise, you'll need to retrieve the position of the button and compare it to the x,y click coordinates and click the button programmatically