praviola
22 Apr 2011, 10:25 PM
Hello,
I made a little change to dragrdrop demo by Sencha (in bundle with 'sencha-touch-1.1.0) and
I did not succeed in making it work.
The demo itself shows the basic technique for drag'n drop and let the user drag and drop a simple 'div' element.
I simply added an image (html tag 'img') to the draggable 'div' and what happens is:
when I drag the div clicking away from the img everything goes well; if I drag clicking on my img surface dragging occurs but when I release the mouse button the img does not detach from mouse pointer... ; I shall click again to trigger the drop.
The trial I did was on PC with chrome browser.
This is the code I changed inside index.html:
<div id="draggable">Draggable<img src="myimg.png" height="35px" width="35px" /><p>hello</p></div>
What was wrong? It do not know what event I should eventually catch and manage in order to make this simple demo work.
Thank you,
Paolo
I made a little change to dragrdrop demo by Sencha (in bundle with 'sencha-touch-1.1.0) and
I did not succeed in making it work.
The demo itself shows the basic technique for drag'n drop and let the user drag and drop a simple 'div' element.
I simply added an image (html tag 'img') to the draggable 'div' and what happens is:
when I drag the div clicking away from the img everything goes well; if I drag clicking on my img surface dragging occurs but when I release the mouse button the img does not detach from mouse pointer... ; I shall click again to trigger the drop.
The trial I did was on PC with chrome browser.
This is the code I changed inside index.html:
<div id="draggable">Draggable<img src="myimg.png" height="35px" width="35px" /><p>hello</p></div>
What was wrong? It do not know what event I should eventually catch and manage in order to make this simple demo work.
Thank you,
Paolo