Reputation: 1
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