(self, position, translation)
Translates mouse moves onto camera movements.
Translates mouse moves onto camera movements.
Translates mouse moves onto camera movements .
def on_move(self, position, translation):
    """Translates mouse moves onto camera movements."""
    del position
    if self._action.in_progress:
      viewport_offset = self._viewport.screen_to_viewport(translation)
      self._camera.move(self._action.watermark, viewport_offset)
def on_move ( self , position , translation ) : del position if self . _action . in_progress : viewport_offset = self . _viewport . screen_to_viewport ( translation ) self . _camera . move ( self . _action . watermark , viewport_offset )