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

Pass the default dropCheck result to dropCheckers #161

Merged
merged 3 commits into from
Feb 27, 2015
Merged

Conversation

taye
Copy link
Owner

@taye taye commented Feb 27, 2015

interact(target)
  .dropzone(true)
  .dropChecker(function (pointer,            // pointer/event that ends drag
                         dropped,            // value from default drop check
                         dropzone,           // dropzone Interactable
                         dropElement,        // dropzone Element
                         draggable,          // draggable Interactable
                         draggableElement) { // Element being dragged

    // use the default value with another custom condition
    return dropped && someCondition;
  });

@taye taye merged commit 1d30dc9 into master Feb 27, 2015
@taye taye deleted the better-drop-checker branch June 1, 2015 01:05
@taye taye restored the better-drop-checker branch June 1, 2015 01:05
@taye taye deleted the better-drop-checker branch June 1, 2015 01:05
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

Successfully merging this pull request may close these issues.

1 participant