check position and elementFromPoint