Skip to content

Commit 1c51d8d

Browse files
authored
refactor: scrollIntoView to scrollSelectionIntoView (#263)
1 parent 7060350 commit 1c51d8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/fluent-editor/src/modules/custom-clipboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export class CustomClipboard extends Clipboard {
165165
delta.length() - linePos.length - linePos.fix,
166166
Quill.sources.SILENT,
167167
)
168-
this.quill.scrollIntoView()
168+
this.quill.scrollSelectionIntoView()
169169
if (loadingTipsContainer) {
170170
loadingTipsContainer.remove()
171171
}

0 commit comments

Comments
 (0)