code: def on_mouse_drag(self, x, y, dx, dy, buttons, modifiers):
          
          self.view['ball'].drag(np.array([x, y]))
          self.scene.camera.transform = self.view['ball'].pose
docs: Pan or rotate the view.