File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
libosmscout-client-qt/src/osmscoutclientqt Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ void MapWidget::setupInputHandler(InputHandler *newGesture)
200200 if (locked != inputHandler->isLockedToPosition ()){
201201 emit lockToPositionChanged ();
202202 }
203- // qDebug() << "Input handler changed ( " << (newGesture->animationInProgress()? "animation": "stationary") << ")" ;
203+ // qDebug() << "Input handler changed to " << inputHandler->metaObject()->className() ;
204204}
205205
206206void MapWidget::redraw ()
@@ -607,7 +607,9 @@ void MapWidget::setFollowVehicle(bool follow){
607607 setupInputHandler (new VehicleFollowHandler (*view, QSizeF (width (), height ())));
608608 }
609609 }else {
610- setupInputHandler (new InputHandler (*view));
610+ if (inputHandler->isFollowVehicle ()) {
611+ setupInputHandler (new InputHandler (*view));
612+ }
611613 }
612614}
613615
You can’t perform that action at this time.
0 commit comments