Object doesn’t support property or method ‘scrollTo’

Even if Edge is not called Internet Explorer, it’s still basically IE. 🙁 And IEs don’t support scrollTo.

Don’t use scrollTo, use scrollLeft and scrollTop instead:

// No:
$container.scrollTo(x, y)

// Yes:
$container.scrollTop = y
$container.scrollLeft = x

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.