I am trying to create a draggable input text box in Canvas, but Canvas doesn’t seem to be allowing creation of any input element. Can anyone please help?
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.
You can’t include HTML elements in Canvas. HTML5 Canvas is a surface reserved for drawing. You are drawing it from Javascipt code after obtaining Graphics Context.
Maybe you can use just CSS positioning to handle moving around the HTML. It can be done with/without Canvas.