-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It seems to be more performant. API-wise it makes sense that withDraggable takes care of calling children's dragstart/dragend event handlers as it needs them to be executed after its own. The reason for this is that the children's event handlers could modify the DOM element withDraggable clones, messing up with its behavior. For example, if the children's event handler change the visibility of the element that takes the event, in turn the element won't be able to process any further events. We don't have the same restrictions with the dragover event. At that point, it can work independently from the children's.
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters