Jump to content
Search Community

Limit Observer to pointer

Thomas Günther test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Heya 👋

 

I noticed I can not limit an Observer to type: pointer. It will always trigger, also on mobile/touch devices.

 

While I can use a condition like e.event.type.includes('pointer') I'm wondering if this is a bug.

 

In this codepen I listen to onLeft and onRight but I don't want this on mobile devices. It will scroll, jump back and then animate the scroll.

See the Pen qBxMVmB by medienbaecker (@medienbaecker) on CodePen

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...