Skip to content

Commit

Permalink
Add note to clarify viewer subscription regardless of tracking toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
duytnguyendtn committed Oct 24, 2024
1 parent fbfaa1d commit 1ff3119
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ def vue_viewer_changed(self, _=None):
return

# Clear all existing subscriptions and resubscribe to selected viewer
# NOTE: Viewer subscription needed regardless of coord_follow_viewer_pan in order
# to detect when coords are centered on viewer, regardless of viewer tracking
for viewer in self.viewer.viewers:
if viewer == self.viewer.selected_obj:
viewer.state.add_callback("zoom_center_x", self.vue_center_on_data)
Expand Down

0 comments on commit 1ff3119

Please sign in to comment.