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

[next] Feature Request: Apply different activationConstraints based on pointerType #1431

Closed
latin-1 opened this issue Jun 12, 2024 · 1 comment

Comments

@latin-1
Copy link

latin-1 commented Jun 12, 2024

No description provided.

@clauderic
Copy link
Owner

This should be possible. I have not had the chance to document this yet but you can pass a function to activationConstraints and look at the event and return different activation constraints depending on the input type, example usage:

https://github.com/clauderic/dnd-kit/blob/experimental/packages/dom/src/core/manager/manager.ts#L29

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

2 participants