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

HTML5 drag event breaks Packery when using with jQuery UI Draggable handle option #206

Closed
wmaca opened this issue Sep 1, 2014 · 1 comment

Comments

@wmaca
Copy link

wmaca commented Sep 1, 2014

Packery's bindUIDraggableEvents expects a ui parameter. The problem is that when the event is not triggered by jQuery, no ui parameter is passed. This causes an attempt to access position of undefined.

Don't know if dragabilly handles it correctly.

To reproduce the error, access http://jsfiddle.net/4tee5qav/1/
There, you should select the "content" text, and drag it.

My temporary fix wast to add an if (!ui) return; on Packery's bindings.

@desandro
Copy link
Member

Thanks so much for reporting this issue. It will be fixed in the next release.

drewpc pushed a commit to drewpc/packery that referenced this issue Jul 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants