The Space For App Developers

Beyond Plain Old HTML Objects

Drag and drop support in WebKit/HTML5/PhoneGap on iOS/Android mobile devices

with 6 comments

I just thought I will share some of my findings around drag and drop support in WebKit, HTML5 and PhoneGap apps running on iOS and Android devices.

To make the story short drag and drop is NOT support out of the box in the current versions of WebKit that run on iOS or Android devices although you can simulate it using mousedown, mousemove and mouseup events.

When I clean the code a bit you can expect and update to this post ;)

Written by Piotr Walczyszyn

February 15th, 2012 at 6:02 pm

6 Responses to 'Drag and drop support in WebKit/HTML5/PhoneGap on iOS/Android mobile devices'

Subscribe to comments with RSS or TrackBack to 'Drag and drop support in WebKit/HTML5/PhoneGap on iOS/Android mobile devices'.

  1. Me and a colleague was wondering. After you do implement the drag and drop, how do you “save” it so that the view stay that way after they come back a day later…like iGoogle?

    Leon

    23 Feb 12 at 9:27 pm

  2. You can save the position in localStorage or on server or anywhere ;)
    p.

    Piotr Walczyszyn

    26 Feb 12 at 9:47 am

  3. did you ever publish this code anywhere? thx

    jficke

    1 May 12 at 10:16 pm

  4. Upload to github!!!

    Ben

    19 Jul 12 at 2:34 pm

  5. Code sample please?

    Michael

    1 Aug 12 at 4:12 pm

  6. did you updated the code or published it?

    codeguru

    12 Mar 13 at 4:45 pm

Leave a Reply