Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Avoid nudging transitions if gesturing
Browse files Browse the repository at this point in the history
Follows #1912 and #1928.
  • Loading branch information
brunoabinader committed Jul 24, 2015
1 parent 4180f99 commit 2104a6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion platform/qt/qmapboxgl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <mbgl/platform/qt/qmapboxgl.hpp>
#include <mbgl/storage/default_file_source.hpp>

#include <QApplication>
#include <QGLContext>
#include <QString>

Expand Down Expand Up @@ -148,5 +149,8 @@ void QMapboxGLPrivate::swap()
}

void QMapboxGLPrivate::triggerRender() {
mapObj.renderSync();
const bool needsRerender = mapObj.renderSync();
if (QApplication::mouseButtons() == Qt::NoButton) {
mapObj.nudgeTransitions(needsRerender);
}
}

0 comments on commit 2104a6d

Please sign in to comment.