Skip to content

Commit

Permalink
disable matched zoom in other viewers in imviz to avoid recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Mar 20, 2024
1 parent 2371925 commit 8af4b25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jdaviz/configs/imviz/plugins/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class _ImvizMatchedZoomMixin(_MatchedZoomMixin):
match_keys = ('x_min', 'x_max', 'y_min', 'y_max')
disable_matched_zoom_in_other_viewer = False
disable_matched_zoom_in_other_viewer = True

def _is_matched_viewer(self, viewer):
return isinstance(viewer, BqplotImageView)
Expand Down
2 changes: 1 addition & 1 deletion jdaviz/core/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def save_prev_zoom(self):

class _MatchedZoomMixin:
match_axes = ('x', 'y')
disable_matched_zoom_in_other_viewer = False
disable_matched_zoom_in_other_viewer = True

def _is_matched_viewer(self, viewer):
return True
Expand Down

0 comments on commit 8af4b25

Please sign in to comment.