Open flexarts opened 11 years ago
I'm aware of the lack of pointer-events
support in IE9, but originally I had planned to leave the element highlight out from IE 9 anyway, but I never got around to doing the general area highlighting (i.e. click anywhere and drag to highlight whatever area you want).
Having said that, I'll try your suggestion when I get some time to work on this project.
Hi, First, thanks for the code. I had the similar issues with IE >9 when I load the page with feedback bug tool the page loads the feedback-glass but I cannot highlight anything except when I try to blackout the whole page blacks out. If you have the modified code it would be great if you could upload the commit.
Hey! First of all great work thanks a lot for this script.
Problem
The problem is that IE9 is not supporting the pointer-events CSS attribute for all HTML elements (just for the
Solution
In order to be able to highlight/blockout elements with IE9 a few lines need to be added to the mousemove event. The hack is to hide all elements for a moment that should not receive the mouse event (i.e. having
pointer-events: none
set) and use the cross-browser functiondocument.elementFromPoint
to get the element the user points at.Code
All subsequent appearances of
e.target
should be replaced withtarget
. Furthermore all elements with the CSS attributepointer-events: none
set have to be marked withclass="feedback-nopointer"
at DOM injection. In my case:Patch for close box
In order to make the close link for already highlighted elements work with the new
feedbackHighlightElement
classes, you need to edit the following lines fromto