docstr: Pan the view based on the change in mouse position.
docstr_tok: ["Pan","the","view","based","on","the","change","in","mouse","position","."]
code: def on_mouse_move(self, event):
      """Pan the view based on the change in mouse position."""
      if event.is_dragging and event.buttons[0] == 1:
          x0, y0 = event.last_event.pos[0], event.last_event.pos[1]
          x1, y1 = event.pos[0], event.pos[1]
          X0, Y0 = self.pixel_to_coords(float(x0), float(y0))
          X1, Y1 = self.pixel_to_coords(float(x1), float(y1))
          self.translate_center(X1 - X0, Y1 - Y0)
          self.update()
  
file_path: vispy/examples/demo/gloo/mandelbrot_double.py
imports: from __future__ import division
  import numpy
  from vispy import app, gloo
label_desc: Use image node_id 5 for calling the Canvas obj's underlying member method code with example usage: obj.on_mouse_move(event) without return types