aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2019-03-28 22:11:05 +0200
committershpuld <shp@cock.li>2019-03-28 22:11:05 +0200
commit1e2c304f76e8c94aa90ce3ad6e9c6b8ee10deb6b (patch)
treeee5aaedc91469b199fb52f91b1afb8796ffb1255
parent0eff4bd0acf709901b29877f7fc65f7a6241e058 (diff)
fix typo
-rw-r--r--src/services/gesture_service/gesture_service.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/gesture_service/gesture_service.js b/src/services/gesture_service/gesture_service.js
index efc0ca78..88a328f3 100644
--- a/src/services/gesture_service/gesture_service.js
+++ b/src/services/gesture_service/gesture_service.js
@@ -22,7 +22,7 @@ const project = (v1, v2) => {
// direction: either use the constants above or an arbitrary 2d vector.
// threshold: how many Px to move from touch origin before checking if the
// callback should be called.
-// divergentTolerance: a scalr for much of divergent direction we tolerate when
+// divergentTolerance: a scalar for much of divergent direction we tolerate when
// above threshold. for example, with 1.0 we only call the callback if
// divergent component of delta is < 1.0 * direction component of delta.
const swipeGesture = (direction, onSwipe, threshold = 30, perpendicularTolerance = 1.0) => {