pointer_events_polyfill
pointer_events_polyfill copied to clipboard
"out of stack space" with stacked elements
I have a situation where I have three canvas elements stacked on top of one other (call them #canvas1, #canvas2, #canvas3), and I need to set "pointer-events: none" on the top two elements (#canvas1, #canvas2). The current version of the code available via a bower install ends up generating an "out of stack space" error. Basically, it ends up in vicious cycle where it determines #canvas1 is 'underneath' #canvas2, and then determines #canvas2 is 'underneath' #canvas, etc. Basically, the code can't handle the case where there are multiple elements at the mouse event point that have 'pointer-events: none'.
Same here. My workaround is I modified the polyfill script so it loops and keeps on getting the next underneath element until it does not have "pointer-events:none"