Skip to content

Commit 2a40383

Browse files
committed
fix(applet): add delay time to ensure scrolling to target node after inspection
1 parent 963c2c0 commit 2a40383

File tree

1 file changed

+1
-1
lines changed
  • packages/applet/src/modules/components

1 file changed

+1
-1
lines changed

packages/applet/src/modules/components/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ function scrollToActiveTreeNode() {
218218
setTimeout(() => {
219219
const selected = componentTreeContainer.value?.querySelector('.active')
220220
selected?.scrollIntoView({ behavior: 'smooth', block: 'center' })
221-
}, 0)
221+
}, 300)
222222
}
223223
224224
// @TODO: 1. tree node tags 2. toggle panel when inspect component

0 commit comments

Comments
 (0)