Add logging for document.elementFromPoint