From 42a7a3a08d1300906bbd432ada11b5294da0bf32 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Fri, 19 Oct 2018 10:37:37 -0300 Subject: [PATCH] Add documentation for new `friction` configuration parameter. --- doc/json-config-parameters.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/json-config-parameters.md b/doc/json-config-parameters.md index 7d86bfb..9cddd9d 100644 --- a/doc/json-config-parameters.md +++ b/doc/json-config-parameters.md @@ -98,6 +98,13 @@ viewer is fullscreen. If set to `false`, mouse and touch dragging is disabled. Defaults to `true`. +### `friction` (number) + +Controls the "friction" that slows down the viewer motion after it is dragged +and released. Higher values mean the motion stops faster. Should be set +(0.0, 1.0]; defaults to 0.15. + + ### `disableKeyboardCtrl` (boolean) If set to `true`, keyboard controls are disabled. Defaults to `false`.