vingtetun/gaia — pull request #11 by crdlc (2012-09-05 10:09:35+00:00)
Title: Fixing drag&drop with canvas

Hi Vivien,

With this pull request I just want to help you in your development. I tried to solve the problem between drag&drop and canvas.

Basically, my first approach was to keep the original code and put as image the result of toDataURL() method but we have a problem of security because the images belong to other origins different than homescreen. So, finally, I tried to keep the canvas in the markup and solve the issues:

When we clone a node and it has a canvas as child, it is not cloned (solved)
Opacity & canvas for <li>s fail (this code is commented in the CSS)
Sometimes when I try to move a lot of icons gecko crashes using canvas
And finally, when icons are re-arranged smoothly the labels disappear :( but only some of them not all

I hope this pull request has been helpful for you

thanks Vivien