I am trying out some HTML5 canvas examples and I have some doubts with how I can drag and drop text, or an image, or a rectangle.
How could I implement a drag and drop ability with the canvas?
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.
If you’re new to canvas, as you mentioned, have you tried using a framework like kineticJs?
It will take care of your drag and drop, among other things, and there are plenty tutorials out there to help you out further.
For example, here is a tutorial for drag and drop, using KineticJs.