100
rated 0 times
[
103]
[
3]
/ answers: 1 / hits: 15297
/ 6 Years ago, wed, july 25, 2018, 12:00:00
I use scroll in my method
const scrollToCenter = () => {
const kon = document.querySelector('.clazz');
const width = kon.offsetWidth;
kon.scrollTo(width / 2, 0);
};
and it works fine in Chrome and Mozilla. In the Edge I'd got an error Object doesn't support property or method scrollTo.
Is exist any different method to use it in Edge?
More From » microsoft-edge