Propeller icon indicating copy to clipboard operation
Propeller copied to clipboard

Doesn't work on an svg element

Open GRA0007 opened this issue 8 years ago • 3 comments

Ok, so I have an svg image inline in my html and an element in that svg I want to be able to drag and rotate. I have an id on the <g> element I want to rotate and I have set up the js. If I use a speed of 1, the element rotates correctly and looks good. I can set inertia and everything. The problem occurs when I try and drag the element to rotate it manually. It simply stops and I can't drag it anywhere. Is this a bug that could be fixed or should I separate the element from the svg into it's own svg that I can rotate? Thanks

GRA0007 avatar Oct 23 '16 08:10 GRA0007

Could you make a CodePen or gist or repo for this?

PixelsCommander avatar Oct 23 '16 11:10 PixelsCommander

I'm seeing the same issue- svg elements will rotate (with inertia) until you click, while a regular div element behaves correctly.

http://codepen.io/zrpnr/pen/VmwRdL

zrpnr avatar Nov 04 '16 23:11 zrpnr

Thanks for the demo zrpnr, that's exactly the issue I'm having. Sorry I never posted my own codepen.

GRA0007 avatar Nov 04 '16 23:11 GRA0007