From ff736d99f48741905d6cf8c9e5700daeb1b4a3d4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 17 Apr 2024 19:18:26 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/11056 --- app/src/protyle/util/editorCommonEvent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index b712f0871..478101506 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -1063,7 +1063,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { return; } const contentRect = protyle.contentElement.getBoundingClientRect(); - if (event.clientY < contentRect.top + Constants.SIZE_SCROLL_TB || event.clientY > contentRect.bottom - Constants.SIZE_SCROLL_TB) { + if (!hasClosestByClassName(event.target, "av__cell") && (event.clientY < contentRect.top + Constants.SIZE_SCROLL_TB || event.clientY > contentRect.bottom - Constants.SIZE_SCROLL_TB)) { protyle.contentElement.scroll({ top: protyle.contentElement.scrollTop + (event.clientY < contentRect.top + Constants.SIZE_SCROLL_TB ? -Constants.SIZE_SCROLL_STEP : Constants.SIZE_SCROLL_STEP), behavior: "smooth"