Improved check for dragged on-page elements