views:

339

answers:

1

Hello all, I just recently got an android phone and found that the drag and drop on my site doesn't work! I understand why it wouldn't, but has anyone found a solution to this? I'm using JQuery to implement the D & D...

+1  A: 

Hi dan,

The iPhone at least has certain events such as ontouchstart, ontouchend, etc. These are part of webkit, but there is much less information with regards Android than iPhone. I think the answer to this question is that the drag and drop functionality needs to use those events rather than the events you would normally use, or needs to use both.

This article may be of interest - http://backtothecode.blogspot.com/2009/10/javascript-touch-and-gesture-events.html

joelg