Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Sep 10, 2024
1 parent 6a322d8 commit f71f5f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/editor/components/scenegraph/SceneGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export default class SceneGraph extends React.Component {
if (entityOption.entity === entity) {
this.setState({ selectedIndex: i });
setTimeout(() => {
// wait 500ms to allow user to double click on entity
document
.getElementById('sgnode' + i)
?.scrollIntoView({ behavior: 'smooth' });
Expand Down

0 comments on commit f71f5f3

Please sign in to comment.