Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Nysh

ScrollTrigger.matchMedia for touch devices? eg. pointer: coarse or any-pointer: etc

Recommended Posts

Hey guys, 

Couldn't find any info in the docs about using ScrollTrigger.matchMedia and pointers? I tried it with pointer:coarse and it didn't seem to register? Is this a feature / would it be in the future? Something like below. Thanks heaps :) 

 

ScrollTrigger.matchMedia({
"(pointer: coarse)": function() { // setup animations and ScrollTriggers for pointer: coarse?? },
});

Link to comment
Share on other sites

Yep, it seems to work fine for me. If you don't think it's working, please provide a minimal demo and make sure you're using the latest version of ScrollTrigger. 

  • Like 2
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.
×