javascript - Get relative coordinates of dragged element in snap.svg -


i'm trying write own onmove event handler snap.svg element.drag function. want allow element dragged constrain area. that, need coordinates of mouse relative svg's top left corner (0,0) handler provided x , y arguments absolute positions in document. seems rather useless given positioning in svg relative top left corner, , not document. there way of getting relative coordinates without using jquery .offset absolute position of svg?


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -