Is it possibile to detect if an element has stopped scrolling in Mobile Safari via Javascript?
I have an element that has momentum scrolling by using -webkit-o
You could also add a function that recursivly calls itself until the scrolling has stopped within the element and then call futher function from there.
isScrolling() {
var scrollStart = .scrollTop;
setTimeout(function() {
var scrollPos = .scrollTop;
if (scrollStart !== scrollPos) {
this.isScrolling()
} else {
// Scrolling has stopped
}
}, 100)
}