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 19ec47c commit 672ad5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Specviz
Bug Fixes
---------

- Fix updating coordinate display when blinking via click. [#1470]

Cubeviz
^^^^^^^

Expand Down
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 672ad5e

Please sign in to comment.