diff --git a/packages/app-desktop/gui/NoteList/NoteList.tsx b/packages/app-desktop/gui/NoteList/NoteList.tsx index 7637e8a05a..fa57eaeed4 100644 --- a/packages/app-desktop/gui/NoteList/NoteList.tsx +++ b/packages/app-desktop/gui/NoteList/NoteList.tsx @@ -456,6 +456,11 @@ const NoteListComponent = (props: Props) => { useEffect(() => { // When a note list item is styled by userchrome.css, its height is reflected. // Ref. https://github.com/laurent22/joplin/pull/6542 + if (dragOverTargetNoteIndex !== null) { + // When dragged, its height should not be considered. + // Ref. https://github.com/laurent22/joplin/issues/6639 + return; + } const noteItem = Object.values(itemAnchorRefs_.current)[0]?.current; const actualItemHeight = noteItem?.getHeight() ?? 0; if (actualItemHeight >= 8) { // To avoid generating too many narrow items