Jump to content
Search Community

dragClickables: true doesn't work

Ilima test
Moderator Tag

Recommended Posts

Please make a demo on codesandbox.

https://codesandbox.io/

 

This is not needed. 

import { gsap, TimelineLite, TimelineMax, TweenMax, CSSPlugin } from "gsap";

 

https://greensock.com/docs/v3/Installation?checked=core,draggable#esModules

import { gsap } from "gsap";
import { Draggable } from "gsap/Draggable";

 

This is incorrect. this.dial is null.

this.dialPos = TweenMax.set(this.dial, {
  x: "+=0",
});

 

Should be gsap.set(), but only after mounted.

 

  • Like 2
Link to comment
Share on other sites

34 minutes ago, OSUblake said:

Please make a demo on codesandbox.

https://codesandbox.io/

 

This is not needed. 


import { gsap, TimelineLite, TimelineMax, TweenMax, CSSPlugin } from "gsap";

 

https://greensock.com/docs/v3/Installation?checked=core,draggable#esModules


import { gsap } from "gsap";
import { Draggable } from "gsap/Draggable";

 

This is incorrect. this.dial is null.


this.dialPos = TweenMax.set(this.dial, {
  x: "+=0",
});

 

Should be gsap.set(), but only after mounted.

 

Sorry about the mess. Updated it and here is the link https://codesandbox.io/s/bold-ishizaka-6st9k?file=/src/drag.jsx

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...