Hay, i have a Raphael object, and a div which i want it to “snap” to. I’m using the drag event to drag an object around, but if i released the object, nothing is sent to the browser. Is there anyway to make it “snap” to a div?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Raphäel object is SVG and the div is a HTML element. You would have to transfer the divs coordinates and size to Raphäel and work with those dimensions there. They both have a DOM Base but then go off into different realms. Like fishes and birds.