mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-07 12:10:52 -06:00
Added documentation for the pinchzoomfactor property
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user