Skip to content

Commit

Permalink
scroll to item when selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Licini committed Aug 15, 2024
1 parent cff469d commit a2dd871
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compas_viewer/components/sceneform.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def update(self):
widget.setSelected(node.is_selected)
if node.is_selected:
self.expand(node.parent)
self.scrollToItem(widget)

else:
self._sceneobjects = list(self.scene.objects)
Expand Down

0 comments on commit a2dd871

Please sign in to comment.