Jump to content
Search Community

NativeTouchScrolling with Draggable on iOS

pietM test
Moderator Tag

Recommended Posts

Hoping this is a quick fix. I've looked over the forums and implemented (allowNativeTouchScrolling: true) for GSAP's boilerplate slider, but it still interrupts the vertical scroll. I'd just like to glide over it, like any image, etc. 

 

Appreciate any help here: 

Thanks for all. 

See the Pen KKzmeRd by euqio (@euqio) on CodePen

Link to comment
Share on other sites

5 hours ago, pietM said:

GSAP's boilerplate slider

I didn't know we had one boilerplate slider ;) 

 

Quoting from the allowNativeTouchScrolling docs (emphasis mine):

Quote

By default, allows you to native touch-scroll in the opposite direction as Draggables that are limited to one axis.

You just need to set type: "x" :) The allowNativeTouchScrolling: true isn't necessary since that's the default.

  • Like 3
  • Haha 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...