scrollToElement() Fix where destX and destY are undefined.