0

I am using jQuery UI drag and drop on my website. I gather mobile devices generally do not support this functionality, so what is the simplest way to detect whether this feature will work or not, to provide an alternative in case it does not.

Note: I prefer feature detection over browser detection.

Sam Hanley
  • 4,707
  • 7
  • 35
  • 63
DaveWalley
  • 817
  • 10
  • 22

1 Answers1

0

You can use Modernizr library as posted here Using Modernizr to detect drag and drop

Community
  • 1
  • 1
Carlos487
  • 1,459
  • 13
  • 17
  • Doesn't work. Modernizr is showing I have drag and drop capability, but jQueryUI drag and drop is not working. Is there a difference between dragging and dropping files (which I suspect is what Modernizr is looking for) and dragging and dropping divs (which is what I need)? – DaveWalley Nov 04 '13 at 22:38