mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
fix: 修复编辑器切换闪烁问题
This commit is contained in:
@@ -40,7 +40,7 @@ export default {
|
||||
await ctx.editor.whenEditorReady()
|
||||
|
||||
disableSyncScroll(async () => {
|
||||
ctx.editor.setScrollToTop(position.editor || 1)
|
||||
ctx.editor.setScrollToTop(position.editor || 0)
|
||||
if (typeof position.view === 'number') {
|
||||
await sleep(0)
|
||||
ctx.view.scrollTopTo(position.view)
|
||||
|
||||
Reference in New Issue
Block a user