From ca59828b8806a2c05bb2a25fd8d24b1d6ed8fb39 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Thu, 22 Aug 2024 14:15:32 +0100 Subject: [PATCH] Improve code comments --- packages/compose/src/hooks/use-drop-zone/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compose/src/hooks/use-drop-zone/index.js b/packages/compose/src/hooks/use-drop-zone/index.js index bd6956fac73688..d155978110342f 100644 --- a/packages/compose/src/hooks/use-drop-zone/index.js +++ b/packages/compose/src/hooks/use-drop-zone/index.js @@ -189,8 +189,8 @@ export default function useDropZone( { // If we're moving in/out of an insertion point then don't trigger // the onDragLeave event. This is to prevent the dropzone from - // being hidden when the user is dragging a block in/over/around - // a block and a nearby insertion point. + // trigger any unwanted side effects when the user is likely to + // be moving the cursor quickly over the insertion point. if ( isInsertionPoint( event.relatedTarget ) || isInsertionPoint( event.target )