Skip to content

Commit

Permalink
Only pan when just the control modifier is pressed
Browse files Browse the repository at this point in the history
I.e. don't eat the event when ctrl+shift is clicked, at which point
we want to bring up the extended "pick element" dialog instead.
  • Loading branch information
milianw committed Jan 3, 2025
1 parent 219f2ef commit 20022e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/remoteviewwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ void RemoteViewWidget::mousePressEvent(QMouseEvent *event)
if (m_interactionMode != NoInteraction
&& m_interactionMode != ViewInteraction
&& event->buttons() & Qt::LeftButton
&& event->modifiers() & Qt::ControlModifier) {
&& event->modifiers() == Qt::ControlModifier) {

pan();
} else {
Expand Down Expand Up @@ -1125,7 +1125,7 @@ void RemoteViewWidget::mouseMoveEvent(QMouseEvent *event)

if (m_interactionMode != NoInteraction
&& event->buttons() & Qt::LeftButton
&& event->modifiers() & Qt::ControlModifier) {
&& event->modifiers() == Qt::ControlModifier) {

pan();
} else {
Expand Down

0 comments on commit 20022e9

Please sign in to comment.