Skip to content

Commit

Permalink
Fix touch zooming when inertial scroll is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
personalizedrefrigerator authored and rolandlo committed Nov 17, 2022
1 parent 3ba1794 commit 3c43dc6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/gui/inputdevices/TouchInputHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,6 @@ void TouchInputHandler::zoomStart() {
}

auto* mainWindow = inputContext->getView()->getControl()->getWindow();

// When not using touch drawing, we're using a different scrolling method.
// This requires different centering.
if (!mainWindow->getGtkTouchscreenScrollingEnabled()) {
Rectangle zoomSequenceRectangle = zoomControl->getVisibleRect();
center += utl::Point<double>{zoomSequenceRectangle.x, zoomSequenceRectangle.y};
}

zoomControl->startZoomSequence(center);
}

Expand Down

0 comments on commit 3c43dc6

Please sign in to comment.