Skip to content

Commit

Permalink
fix(applet): add delay time to ensure scrolling to target node after …
Browse files Browse the repository at this point in the history
…inspection
  • Loading branch information
webfansplz committed Apr 24, 2024
1 parent 963c2c0 commit 2a40383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/applet/src/modules/components/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function scrollToActiveTreeNode() {
setTimeout(() => {
const selected = componentTreeContainer.value?.querySelector('.active')
selected?.scrollIntoView({ behavior: 'smooth', block: 'center' })
}, 0)
}, 300)
}
// @TODO: 1. tree node tags 2. toggle panel when inspect component
Expand Down

0 comments on commit 2a40383

Please sign in to comment.