Ulprus
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Ulprus
-
-
On 4/6/2022 at 4:02 AM, neontrenton said:
Never mind, I found the .kill(); method and that works perfecly.
Hi there! Could you please shed some light on how you achieved this? That would be great 🙏🏻
Disable ScrollSmoother on Mobile?
in GSAP
Posted
The issue I am having is that I am unable to pull down to refresh on mobiles while ScrollSmoother is enabled. I have found the following JS which does stop most of the ScrollSmoother:
window.onload = () => {
if (window.matchMedia('(max-width: 480px)').matches) {
window._mp_smoother.kill();
window.ScrollTrigger.killAll();
} else {}
}
However, I am still unable to refresh on mobile by pull-down.
Since I am using Motion.page, I am having to use JS externally.