Skip to content

fdn/ios-html5-drag-drop-shim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS shim for HTML 5 drag'n'drop

Technical debt analysis

The HTML 5 drag'n'drop API allows you to implement drag'n'drop with the same code on most desktop browsers. Unfortunately, you'll notice iOS doesn't support it, so no iPad (or Android) action for you!

Luckily, WebKit gives us enough tools to shim seamlessly. If you drop this script in your page your existing HTML 5 drag'n'drop code should just work.

Check out the demo to see it in action. It should work on Android, but I don't have an Android phone to test. Let me know @timruffles.

What doesn't work

Thanks

@rem - who created the original demo used to demo this shim's drop-in nature.

License

MIT License

About

A drop-in shim to allow you to use existing html5 drag'n'drop code with iOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 69.1%
  • CSS 30.9%