balthazarE Posted July 9, 2020 Share Posted July 9, 2020 I am incorporating some basic draggable functionality into a web banner and was wondering if there was an easy way to disable the "toss" ability. I have some text that is animating based on user interaction and i was hoping there was an easy way to just turn this ability off. I can refactor my work into a pen if that makes it easier but i thought it might not be necessary. Thanks in advance! Link to comment Share on other sites More sharing options...
GreenSock Posted July 9, 2020 Share Posted July 9, 2020 You actually have to opt-in to the "toss" behavior, and you even need a bonus plugin to do it I'm not sure which version you're using, but just make sure that you DON'T have throwProps: true or inertia: true. 1 Link to comment Share on other sites More sharing options...
balthazarE Posted July 9, 2020 Author Share Posted July 9, 2020 OK, i tried to make sure that these properties were false but am still getting the throw to work. I've imbedded my pen so you can see what i am referring to. See the Pen VwexVbd by beeboyely (@beeboyely) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted July 9, 2020 Share Posted July 9, 2020 Interesting. Whoever made that script uses some weird drag handling function (that causes conflict). Applying it to the onDragEnd instead works a lot better: // onDrag: onDrag, onDragEnd: onDrag, 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