Share Posted February 16, 2022 Hello, I want to add path when I click the ADD PATH button but draggable motion always working just for last created one. Please, try to add 2 paths with the add button and try to drag old one. You can see the problem. Can you help me? CodePen: Thanks, See the Pen yLPPMOB by alpbla (@alpbla) on CodePen Link to comment Share on other sites More sharing options...
Solution Solution Share Posted February 16, 2022 Hi Alp, It works, the problem is that you are placing a brand new SVG on top of the old one, so the new one is blocking the events to old. You would need to place new paths inside the same SVG to prevent that. 1 Link to comment Share on other sites More sharing options...
Author Share Posted February 16, 2022 1 hour ago, OSUblake said: Hi Alp, It works, the problem is that you are placing a brand new SVG on top of the old one, so the new one is blocking the events to old. You would need to place new paths inside the same SVG to prevent that. Hello , Thank you for fast reply, I solved the issue. Firstly, I created a main svg container then instead of using html string, I used d3.js to dynamically append circles and path. It works 1 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