I have a script that's dimming the page by appending a black transparent canvas element to the body, positioning it over the page with a high z-index, and then using clearRect to cut out the sections of canvas element so that certain sections of the actual site show through..
I'm having a hard time figuring out the best way to pass a click through the canvas and onto whatever would accept it if the canvas wasn't in the way so a user can edit the text.
my first choice was hiding the canvas on mousedown, and then listening for mouseup for everything underneath. but it looks terrible to have that 200ms flicker.
can a trigger() be used to emulate a click at a certain (pageX,pageY)?
the last option i can think of would be adding 30 divs and duplicate the punched-out canvas..
but that seems like a lot of math
does anyone know of a plugin that does this? a reverse blockUI
Thanks so much for reading. I would appreciate any ideas for more brainstorming