Skip to content

Commit

Permalink
fix updating coordinate displaying when blinking via click
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Jul 8, 2022
1 parent aec90f1 commit 5f57cd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jdaviz/configs/imviz/plugins/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,13 @@ def activate(self):
def deactivate(self):
self.viewer.remove_event_callback(self.on_click)

def on_click(self, *args):
def on_click(self, data):
self.viewer.blink_once()

# Also update the coordinates display.
data['event'] = 'mousemove'
self.viewer.on_mouse_or_key_event(data)


@viewer_tool
class MatchBoxZoom(_MatchedZoomMixin, BoxZoom):
Expand Down

0 comments on commit 5f57cd5

Please sign in to comment.