-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat(): drop:before
event
#7442
Conversation
wait, which is the difference between drop:before and drop at this point? I m not opposed to this at all, just i want to understand better. |
The idea is to use |
For example obj.on('drop:before', (opt) => {
let handled = false;
// logic mutating `handled`
handled && opt.e.preventDefault();
})
canvas.on('drop', (opt) => {
if (opt.e.defaultPrevented) return;
// handle the drop
}) |
Another use case would be handling drop on objects in a different order than object stack order |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Sorry i m late on this. |
that object you set the drop:before event on, could be the object that is in the |
No description provided.