From kde-commits Wed Nov 30 23:27:46 2016 From: Torsten Rahn Date: Wed, 30 Nov 2016 23:27:46 +0000 To: kde-commits Subject: [marble] src/lib/marble: Enter the Animation viewcontext on touch/press . Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=148054847531120 Git commit f4befe7d9dd8c92d22c3f13f087ec3a2de898cda by Torsten Rahn. Committed on 30/11/2016 at 23:22. Pushed by rahn into branch 'master'. Enter the Animation viewcontext on touch/press . Prevent repainting the screen for the initial touch. This fixes the wait/sluggishness when starting to pan. M +5 -0 src/lib/marble/MarbleInputHandler.cpp https://commits.kde.org/marble/f4befe7d9dd8c92d22c3f13f087ec3a2de898cda diff --git a/src/lib/marble/MarbleInputHandler.cpp b/src/lib/marble/MarbleI= nputHandler.cpp index 97f1c5e..52e649c 100644 --- a/src/lib/marble/MarbleInputHandler.cpp +++ b/src/lib/marble/MarbleInputHandler.cpp @@ -456,6 +456,11 @@ void MarbleDefaultInputHandler::handleMouseButtonPress= (QMouseEvent *event) = void MarbleDefaultInputHandler::handleLeftMouseButtonPress(QMouseEvent *ev= ent) { + // silently enable the animation context without triggering a repaint + MarbleInputHandler::d->m_marblePresenter->map()->blockSignals(true); + MarbleInputHandler::d->m_marblePresenter->setViewContext(Animation); + MarbleInputHandler::d->m_marblePresenter->map()->blockSignals(false); + if (isMouseButtonPopupEnabled(Qt::LeftButton)) { d->m_lmbTimer.start(400);