Julian Freyberg
Julian Freyberg

Reputation: 1

scrollIntoView with smooth behavior can be stopped by clicking

I have a container with 100% height and overflow-hidden, which should only be scrolled clicking a button that triggers the scrollIntoView function for the container's children.

On desktops this works flawless, but on mobile, the scrollIntoView function can be stopped by random clicking/scrolling around on the page. How can I prevent this?

I tried to prevent the touchmove event (using e.preventDefault(); e.stopPropagation();), but it did not help.

Upvotes: 0

Views: 182

Answers (0)

Related Questions