From 69907fd60c99862f9afd4f1343c95c38cf3b8bcc Mon Sep 17 00:00:00 2001 From: Jonathan Bosson Date: Tue, 16 May 2017 18:21:07 -0600 Subject: [PATCH] nullify roll velocity in onlyPan case --- modules/touch/src/TouchInteraction.cpp | 3 +++ 1 file changed, 3 insertions(+) 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)); } }