# HG changeset patch # User Jeremy Thurgood # Date 1329041588 -7200 # Node ID 96daa4119745569be284787a7ac414bcca53842f # Parent edcca10b8a538a4f2ad1a849d8e8f7035a841ef0 Forward mouse_move events to detail windows as well. diff -r edcca10b8a53 -r 96daa4119745 pyntnclick/gamescreen.py --- a/pyntnclick/gamescreen.py Sun Feb 12 11:45:34 2012 +0200 +++ b/pyntnclick/gamescreen.py Sun Feb 12 12:13:08 2012 +0200 @@ -106,6 +106,8 @@ handle_result(result, self) def mouse_move(self, event, widget): + if self.game.current_detail: + return self.detail.mouse_move(event, widget) self.game.highlight_override = False self.game.current_scene.mouse_move(event.pos) self.game.old_pos = event.pos @@ -181,7 +183,7 @@ super(DetailWindow, self).draw(surface) def mouse_down(self, event, widget): - self.mouse_move(event) + self.mouse_move(event, widget) if event.button != 1: # We have a right/middle click self.game.cancel_doodah(self.screen) else: @@ -189,7 +191,7 @@ self.global_to_local(event.pos)) handle_result(result, self) - def mouse_move(self, event): + def mouse_move(self, event, widget): self._mouse_move(event.pos) def _mouse_move(self, pos):