diff --git a/modules/touch/src/TouchInteraction.cpp b/modules/touch/src/TouchInteraction.cpp index 3bd752f3d4..df422c80cb 100644 --- a/modules/touch/src/TouchInteraction.cpp +++ b/modules/touch/src/TouchInteraction.cpp @@ -306,6 +306,9 @@ void TouchInteraction::directControl(const std::vector& list) { _vel.zoom = par.at(2); _vel.roll = par.at(3); if (nDOF > 4) { + if (_onlyPan) { + _vel.roll = 0.0; + } _vel.pan = glm::dvec2(par.at(4), par.at(5)); } }