Antdev Posted April 10, 2022 Share Posted April 10, 2022 Hello I am putting together an app using vue js 3 and gsap using the Draggable plugin. I am having an issue with the value of this.x within the updateProgress not being defined. Please take a look at my codepen: If anyone has some knowledge of using gsap with vue and can help me resolve this issue I would be very grateful. I am creating a carousel and had it all working outside of vue but bringing it into vue has caused me this issue. Hopefully just a scoping issue that there is a fix for. Thanks Ant See the Pen abEKWpL by antdev (@antdev) on CodePen Link to comment Share on other sites More sharing options...
Solution Cassie Posted April 10, 2022 Solution Share Posted April 10, 2022 Heya, frameworks huh! Looks like you need to pass the draggable instance through to your update function! See the Pen popKwvr by GreenSock (@GreenSock) on CodePen 1 1 Link to comment Share on other sites More sharing options...
Antdev Posted April 10, 2022 Author Share Posted April 10, 2022 Thank you so much Cassie for coming to my rescue. I spent hours on this with no success going round in circles. 2 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