
redcrayon
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
ScrollTrigger Demos
Downloads
Posts posted by redcrayon
-
-
Thanks Carl!
Sorry for not responding to this sooner.I tried the beta version of the draggable and it worked.
Now that has been resolved, I seem to be having trouble with draggable bounds which I guess is a separate issue altogether. Seems to be cutting off on the right side of the window even though I specified the bounds to be "window".
Thanks again! -
Unfortunately, that didn't work. I also tried this as a CSS property which didn't work either.
TweenMax.set(element, { css: { "touch-action": "pan-x pan-y" }});
This post is experiencing the same issues I have at the moment.If you open this pen on an Android phone / Chrome browser, the first example is the issue I have. Basically, I cannot drag an SVG.
See the Pen b22b091009ecab25ea5ca190d3f54496 by osublake (@osublake) on CodePen
After about 5-10px movement in any direction, onRelease is automatically triggered. After applying their solution (touchAction), I was able to successfully drag in one direction but not the other.
-
Hi GSAP,
What is the syntax to have touchAction work on both axis?
Single axis works:
TweenMax.set(element, { touchAction: "pan-x" });
This doesn't work:
TweenMax.set(element, { touchAction: "pan-x pan-y" });
Thanks!
Getting touchAction property to work with pan-x pan-y
in GSAP
Posted
Hi Jack. Thanks for the reply.
Navigate to this site using an Android phone running Chrome.
http://engit.eng.unimelb.edu.au
Go to the quiz section and drag the items around. It appears the resolution detected by the bounds is scaled down. When you drag any of those answers to the right of the screen or to the bottom, the drag is prevented. I have tinkered with the edgeResistance value which seems to allow dragging beyond the bounds, but the bounds continue to be scaled down.
Here's a snippet of the code. I don't think it's anything unusual.