Share Posted August 3, 2022 Hi! I have the similar problem as in this thread — draggable doesn't work well on androids. In order to fix it I need to override the default draggable `touchAction` which is `manipulation` but I can't do it with react. Looks like it's just ignore my override. What am I doing wrong? Here is the demo — https://codesandbox.io/s/gracious-lumiere-ynov4r?file=/src/App.tsx 1 Link to comment Share on other sites More sharing options...
Author Share Posted August 3, 2022 I figured that if you disable `allowEventDefault: true` this fix the issue. But I hope it wouldn't affect the behaviour for interactive elements inside. Link to comment Share on other sites More sharing options...
Solution Solution Share Posted August 4, 2022 Did you try just doing your .set() AFTER you create the Draggable? It looks like you did it BEFORE in your demo. Also, if you don't want to allow native touch scrolling, setting allowNativeTouchScrolling: false is an option as well (instead of allowEventDefault). 1 Link to comment Share on other sites More sharing options...
Author Share Posted August 5, 2022 On 8/4/2022 at 6:37 AM, GreenSock said: Did you try just doing your .set() AFTER you create the Draggable? It looks like you did it BEFORE in your demo. Also, if you don't want to allow native touch scrolling, setting allowNativeTouchScrolling: false is an option as well (instead of allowEventDefault). Thank you! 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