Skip to content

Commit

Permalink
delay callback when calling previous zoom
Browse files Browse the repository at this point in the history
* will do one update instead of 4
  • Loading branch information
kecnry committed Jul 9, 2024
1 parent 0d7684a commit 53f0838
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jdaviz/core/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def activate(self):
return
prev_limits = self.viewer._prev_limits
self.save_prev_zoom()
self.viewer.state.x_min, self.viewer.state.x_max, self.viewer.state.y_min, self.viewer.state.y_max = prev_limits # noqa
with delay_callback(self.viewer.state, 'x_min', 'x_max', 'y_min', 'y_max'):
self.viewer.state.x_min, self.viewer.state.x_max, self.viewer.state.y_min, self.viewer.state.y_max = prev_limits # noqa


@viewer_tool
Expand Down

0 comments on commit 53f0838

Please # to comment.