Determinating elements in the viewport depends on the coordinates
var el = document.elementFromPoint(x, y); Returns element with the highest z-index. Suppored in all browsers.
var el = document.elementFromPoint(x, y); Returns element with the highest z-index. Suppored in all browsers.