We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afa8b5c commit 0e75767Copy full SHA for 0e75767
packages/block-editor/src/components/writing-flow/use-drag-selection.js
@@ -75,7 +75,13 @@ export default function useDragSelection() {
75
} );
76
}
77
78
- function onMouseLeave( { buttons, target } ) {
+ function onMouseLeave( { buttons, target, relatedTarget } ) {
79
+ // If we're moving into a child element, ignore. We're tracking
80
+ // the mouse leaving the element to a parent, no a child.
81
+ if ( target.contains( relatedTarget ) ) {
82
+ return;
83
+ }
84
+
85
// Avoid triggering a multi-selection if the user is already
86
// dragging blocks.
87
if ( isDraggingBlocks() ) {
0 commit comments