Nysh Posted February 26, 2021 Share Posted February 26, 2021 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 More sharing options...
GreenSock Posted February 27, 2021 Share Posted February 27, 2021 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. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now