Jump to content
Search Community

scrollTo not working on touch device

SteveS test
Moderator Tag

Recommended Posts

I have a scrollTrigger that when hit is supposed to scroll to a certain position on the page. On desktop it is working fine, but when I use a touch emulator it ceases working. The tween fires, it is not autoKilling, no perceivable problem. It just doesn't scroll. It's as if there were nothing there. I'll put together a codepen if need be, but I am hoping someone knows what the issue might be without it.

Link to comment
Share on other sites

I figured out my issue. It is very specific to my setup. I'm using Observer to watch my scroll direction, and I believe that wheel vs touch have inverse scroll directions. Scrolling down the page with a wheel is an up input using touch.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...