Skip to content

Commit

Permalink
Minor c hange to try tracking the click status
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewturk committed Jul 5, 2024
1 parent 277cec6 commit fd8cfd4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions yt_idv/rendering_contexts/pyglet_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ def center_window(self):
self.set_position(0.5, 0.5)

def on_mouse_press(self, x, y, button, modifiers):
self._currently_clicked = True
self._do_update = True

def on_mouse_release(self, x, y, button, modifiers):
self._currently_clicked = False
self._do_update = True

def on_mouse_drag(self, x, y, dx, dy, buttons, modifiers):
Expand Down

0 comments on commit fd8cfd4

Please sign in to comment.