From 524a8dd6fd5347fbcf83ceee7418196c40c58394 Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Thu, 2 Feb 2023 15:25:27 -0600 Subject: [PATCH] Change right click and drag to pan Change right click and drag to pan (same as middle click and drag) --- cq_editor/widgets/occt_widget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cq_editor/widgets/occt_widget.py b/cq_editor/widgets/occt_widget.py index 172755e..b7e6f18 100644 --- a/cq_editor/widgets/occt_widget.py +++ b/cq_editor/widgets/occt_widget.py @@ -95,8 +95,8 @@ class OCCTWidget(QWidget): self.old_pos.y() - y, theToStart=True) elif event.buttons() == Qt.RightButton: - self.view.ZoomAtPoint(self.old_pos.x(), y, - x, self.old_pos.y()) + self.view.Pan(x - self.old_pos.x(), + self.old_pos.y() - y, theToStart=True) self.old_pos = pos