Change right click and drag to pan

Change right click and drag to pan (same as middle click and drag)
This commit is contained in:
jdegenstein
2023-02-02 15:25:27 -06:00
committed by GitHub
parent bd12503e81
commit 524a8dd6fd

View File

@@ -95,8 +95,8 @@ class OCCTWidget(QWidget):
self.old_pos.y() - y, theToStart=True) self.old_pos.y() - y, theToStart=True)
elif event.buttons() == Qt.RightButton: elif event.buttons() == Qt.RightButton:
self.view.ZoomAtPoint(self.old_pos.x(), y, self.view.Pan(x - self.old_pos.x(),
x, self.old_pos.y()) self.old_pos.y() - y, theToStart=True)
self.old_pos = pos self.old_pos = pos