scrollTo plugin works great on desktop and in most mobile scenarios. However, I'm running into problems when testing for iPhones X (on BrowserStack). I have a restart button that scrolls the window back to the beginning. The problem I'm finding is on iPhones X when scrolling backwards the browser address and phone navigation icons appear/are revealed and it appears to halt the scrolling progress. I have autoKill:false set which corrects the issue in most cases, but for iPhones X it seems to not work. Any thoughts?
function handleMobileRestart(e) {
e.preventDefault();
function closeWindow() {
dateWindowWrapper.classList.remove('open-window');
introCard.classList.remove('actify');
}
TweenMax.to(window, 4, {scrollTo:{y:0, autoKill:false}, ease:Expo.easeOut});
setTimeout(closeWindow, 2000);
}