简体   繁体   中英

Can I use drag and drop of html5 on mobile devices with phonegap?

I need a drag and drop to mobile devices using phonegap. I tried with jquery mobile and jquery ui + jquery touch punch but html5 is better for me. Is it possible?

Thanks, Francisco

//EDIT

Here is a draggable image :

<a href="" name="cebra" draggable="true" ondragstart="dragUser(this, event)" > 
<img src="Imagenes/cebra.png" alt="cebra" width="150" height="100" id=""      style="background-color: #FFFFFF; display: block;" ; /> 
</a> 

and the function of javascript

function dragUser(user, event) { 
     event.dataTransfer.setData('User', user.id); 
 } 

I need to know if I can make a draggable image to android with the property draggable = "True" and phonegap. I can make this with jquery ui + jquery ui touch punch but could be better with html5 for my application.

Hi Fransisco, Drag and drop feature can be added by using jQuery UI, and we have implemented this in web, android and iOS applications(Using phonegap also). So go ahead with this and please refer the following links,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM