From 5638d0e983a64948a85466e56a093ce3ce9566ed Mon Sep 17 00:00:00 2001 From: Jiuqing Song Date: Wed, 15 May 2024 10:59:42 -0700 Subject: [PATCH] Bump version to 9.3.1: Hot fix #2633 (#2635) * Fix #2633 `scrollCaretIntoView` causes unexpected scroll (#2634) * Fix #2633 * add comment * 9.3.1: Hot fix #2633 --- .../lib/command/paste/mergePasteContent.ts | 2 +- .../roosterjs-content-model-plugins/lib/edit/keyboardDelete.ts | 2 +- .../roosterjs-content-model-plugins/lib/edit/keyboardInput.ts | 2 +- versions.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/roosterjs-content-model-core/lib/command/paste/mergePasteContent.ts b/packages/roosterjs-content-model-core/lib/command/paste/mergePasteContent.ts index 9cd3302ad4b..55f2374297a 100644 --- a/packages/roosterjs-content-model-core/lib/command/paste/mergePasteContent.ts +++ b/packages/roosterjs-content-model-core/lib/command/paste/mergePasteContent.ts @@ -94,7 +94,7 @@ export function mergePasteContent( { changeSource: ChangeSource.Paste, getChangeData: () => clipboardData, - scrollCaretIntoView: true, + scrollCaretIntoView: false, // TODO #2633: Make a full fix to the scroll behavior apiName: 'paste', } ); diff --git a/packages/roosterjs-content-model-plugins/lib/edit/keyboardDelete.ts b/packages/roosterjs-content-model-plugins/lib/edit/keyboardDelete.ts index 44c73db93aa..a16c45bc9b0 100644 --- a/packages/roosterjs-content-model-plugins/lib/edit/keyboardDelete.ts +++ b/packages/roosterjs-content-model-plugins/lib/edit/keyboardDelete.ts @@ -49,7 +49,7 @@ export function keyboardDelete(editor: IEditor, rawEvent: KeyboardEvent) { rawEvent, changeSource: ChangeSource.Keyboard, getChangeData: () => rawEvent.which, - scrollCaretIntoView: true, + scrollCaretIntoView: false, // TODO #2633: Make a full fix to the scroll behavior apiName: rawEvent.key == 'Delete' ? 'handleDeleteKey' : 'handleBackspaceKey', } ); diff --git a/packages/roosterjs-content-model-plugins/lib/edit/keyboardInput.ts b/packages/roosterjs-content-model-plugins/lib/edit/keyboardInput.ts index 91ecf99647e..36a9a0b894d 100644 --- a/packages/roosterjs-content-model-plugins/lib/edit/keyboardInput.ts +++ b/packages/roosterjs-content-model-plugins/lib/edit/keyboardInput.ts @@ -36,7 +36,7 @@ export function keyboardInput(editor: IEditor, rawEvent: KeyboardEvent) { } }, { - scrollCaretIntoView: true, + scrollCaretIntoView: false, // TODO #2633: Make a full fix to the scroll behavior rawEvent, } ); diff --git a/versions.json b/versions.json index c21bb46201f..67a77bc531f 100644 --- a/versions.json +++ b/versions.json @@ -1,6 +1,6 @@ { "legacy": "8.62.0", "react": "8.56.0", - "main": "9.3.0", + "main": "9.3.1", "legacyAdapter": "8.62.0" }