|
|
@@ -445,7 +445,7 @@ class PlotCanvas(QtCore.QObject):
|
|
|
def on_mouse_press(self, event):
|
|
|
|
|
|
# Check for middle mouse button press
|
|
|
- if event.button == 2:
|
|
|
+ if event.button == self.app.mouse_pan_button:
|
|
|
|
|
|
# Prepare axes for pan (using 'matplotlib' pan function)
|
|
|
self.pan_axes = []
|
|
|
@@ -461,7 +461,7 @@ class PlotCanvas(QtCore.QObject):
|
|
|
def on_mouse_release(self, event):
|
|
|
|
|
|
# Check for middle mouse button release to complete pan procedure
|
|
|
- if event.button == 2:
|
|
|
+ if event.button == self.app.mouse_pan_button:
|
|
|
for a in self.pan_axes:
|
|
|
a.end_pan()
|
|
|
|