Languages

Menu
Sites
Language
drag and drop is not working in tizen

Hi,

I have developed an application and in which drag and drop option is not working ,after log press and hold it drop the image from one place to another.I do not want it to press long and then drop.

 

 

thanks and regard

Mohit Kumar

Responses

6 Replies
ashish kumar

any one can solved this the problem.

Vikram

Hello,

Please refer to this description of the following link. as per this one, it is a default behavior.

      To use drag and drop in a Tizen device, long-press the draggable element. When the context menu appears, select the Drag menu.

     https://developer.tizen.org/documentation/guides/web-application/w3chtml5supplementary-features/ui/html5-drag-and-drop

Prajith Premanandan

Hi guys

i'm not sure this will work or not because i never tried but you can give a try 

by default webkit will initiate context menu in mobile devices so

include this in <tizen:setting context-menu="disable"/> config.xml inside <widget> tag

and try

 

Seoghyun Kang

Hello,

 

Your question is a little vague.

Please check whether the following situation is correct.

 

I think there is no problem in the your application when you test it on the browser.

But when you test it on the emulator or device, it is possible to use the drag and drop only after the long press.

 

I know this is the Tizen feature.

 

If you do not like it, please use the "touchmove" and "touchend" events instead of the drag event.

You can solve the problem by using the touch event.

 

Best regards,

Seoghyun Kang

 

 

AVSukhov

Hello,

If you disable context menu y cannot use drag and drop feature.

Curently Tizen support drag and drop only through the context menu as say  Vikram

Palitsyna

Hello,

just fyi, here you can find information how you can use drag and drop in Tizen. Ther are examples of handling Drag and Drop Events and Transferring Data over Drag and Drop.

https://developer.tizen.org/documentation/tutorials/web-application/w3chtml5supplementary-features/ui/html5-drag-and-drop?langredirect=1#handle