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

Dragleave works more like mouseout #61

Open
dancork opened this issue Aug 5, 2012 · 2 comments
Open

Dragleave works more like mouseout #61

dancork opened this issue Aug 5, 2012 · 2 comments

Comments

@dancork
Copy link

dancork commented Aug 5, 2012

I found the fact dragleave triggered when entering a child utterly infuriating as I wanted it to work more in the same way mouseleave does, rather than the way mouseout does.

I created a jQuery special event which I've called dragout to replicate the behaviour I needed..

https://github.com/dancork/jquery.event.dragout

Whether you want to use it with this plugin is up to you but I amended the events that trigger so that my dragout triggers the dragLeave function sent to it and the html5 dragleave event triggers a new dragOut event I added. This way the functionality matches the mouse events.

@weixiyen
Copy link
Owner

Would appreciate a patch to the current plugin to make it work with child elements in the drop area, although I'd rather not include other plugins with it. Thanks!

@danosaure
Copy link

@dancork : why do you set the event on 'body'?

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

3 participants