Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hammer.JS versus HTML5 Drag and Drop #553

Closed
jokeyrhyme opened this issue May 13, 2014 · 4 comments
Closed

Hammer.JS versus HTML5 Drag and Drop #553

jokeyrhyme opened this issue May 13, 2014 · 4 comments

Comments

@jokeyrhyme
Copy link

So, many modern browsers have native implementations of HTML5 Drag and Drop:

The specification has the following events:

  • dragstart
  • drag
  • dragenter
  • dragleave
  • dragover
  • drop
  • dragend

The specification definitely has some problems, and I've recently spent some time working with it and can echo the sentiment found here: http://www.quirksmode.org/blog/archives/2009/09/the_html5_drag.html

Is there room in Hammer.JS's scope to cover some of the features from the specification, but in a sane way? Specifically, the dragenter, dragleave and dragover events are not covered by Hammer currently, and might cover common use cases.

This may be partly related to #230.

@Joopmicroop
Copy link

Yep wanted to use Hammer in my project but missed dragenter, dragleave, dragover...
fixed it with some dispatchEvent calls in my own code but still, I want Hammer to play nice...

@arschmitz
Copy link
Contributor

Closing this hammer dropped all drag support in v2

@al6x
Copy link

al6x commented May 4, 2019

Can you please clarify - what's the recommended way to implement Drag & Drop? Or hammer.js doesn't implement it at all and some other library supposed to be used?

@AlbaLopez
Copy link

@alexeyPetrushin did you find any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants