From 0808ebb1b4b7fc8d6658084d9dc3e4c86ee5f081 Mon Sep 17 00:00:00 2001 From: Mikael Pettersson Date: Tue, 10 Mar 2020 18:34:11 +0100 Subject: [PATCH] Added documentation for the pinchzoomfactor property --- modules/touch/src/touchinteraction.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/touch/src/touchinteraction.cpp b/modules/touch/src/touchinteraction.cpp index 01634ea46a..cf36a632e5 100644 --- a/modules/touch/src/touchinteraction.cpp +++ b/modules/touch/src/touchinteraction.cpp @@ -118,8 +118,10 @@ namespace { }; constexpr openspace::properties::Property::PropertyInfo PinchZoomFactorInfo = { - "PinchZoomFactor", "Scaling distance travelled on pinch", - "" // @TODO Missing documentation + "PinchZoomFactor", + "Scaling distance travelled on pinch", + "This value is used to reduce the amount of pinching needed. A linear" + "kind of sensitivity that will alter the pinch-zoom speed." }; constexpr openspace::properties::Property::PropertyInfo DirectManipulationInfo = { @@ -1106,7 +1108,7 @@ void TouchInteraction::step(double dt, bool directTouch) { //Apply the velocity to update camera position double zoomVelocity = _vel.zoom; - if(!directTouch) { + if (!directTouch) { const double distanceFromSurface = length(currentPosDistance) - anchor->boundingSphere(); if (distanceFromSurface > 0.1) {