Datatransfer in Chrome
I am implementing dragging an image from thumbnail and dropping into a canvas and draw it. I have used datatransfer.setdata() during the event ondragstart and datatransfer.getdata() on event ondrop. It is working perfectly in Firefox, but doesn't work in Chrome. I have come to know that in Chrome datatransfer is not supported. So, what can be a good solution, that should be cross browser compatible too! function dragIt(event) { event.dataTransfer.setData("URL", event.target.id) }; function dropIt(event) { var theData = new Image(); theData = event.dataTransfer.getData("URL"); dt = document.get
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.