Last Updated: February 25, 2016
·
830
· balaclark

HTML5 drag and drop on the body

When the body element as a drop target on pages that don't have a lot of other content make sure to set:

html, body {
  height: 100%:
}

If you don't you may not trigger the drag events due to the body being too short.