Jump to content
Search Community

Draggable Glitch in Firefox

SSB test
Moderator Tag

Recommended Posts

Hi All,

 

Im trying to draw an svg Path from the centre point, which uses Draggable method.  

On Drag im trying to generate a straight Line  from a centre Dot.  The centre Dot is fixed and only straight  line should be generated on  x axis.

I see its working  chrome and safari, but i see the Center Dot also moving while dragging Fire Fox Browser. I have attached code pen link with demo. Could you please check and help us what is missing

 

1)  Generate Straight Line along  xais on dragging from center DOt

2) Center Dot should be  sticked and should not moved

 

 

Kind Regards.

Sumanth

 

See the Pen qBEYVPV by SumanthMadey (@SumanthMadey) on CodePen

Link to comment
Share on other sites

Hey BSumanth and welcome. 

 

Unfortunately I don't have time to debug exactly why this behavior is happening in Firefox right now. But I did want to mention that with this sort of behavior it's often good to use a proxy/trigger element. You can set it by using the trigger property inside of the draggable call. For more info check out the docs: https://greensock.com/docs/v3/Plugins/Draggable

 

One approach would be to use the circle as a trigger and set the line length similarly to how you're doing it currently.

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