diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-18 10:27:09 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-18 10:27:09 -0400 |
| commit | 454b4aac706939bdd602343683012c8497b70c3c (patch) | |
| tree | 51afeb5df5f726babfe7bc5f9a28e649596bac72 /src/client/views/GestureOverlay.tsx | |
| parent | 963f335eea91e0e3b78ca844af8028c611ad865b (diff) | |
disabled ink gestures (can be reneanbled with Doc.UserDoc().recognizeGestures. fixed z-index setting of new documents in freeform view.
Diffstat (limited to 'src/client/views/GestureOverlay.tsx')
| -rw-r--r-- | src/client/views/GestureOverlay.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/GestureOverlay.tsx b/src/client/views/GestureOverlay.tsx index 76e786257..c25ebbf11 100644 --- a/src/client/views/GestureOverlay.tsx +++ b/src/client/views/GestureOverlay.tsx @@ -613,10 +613,10 @@ export default class GestureOverlay extends Touchable { } } // if we're not drawing in a toolglass try to recognize as gesture - else { + else { // need to decide when to turn gestures back on const result = points.length > 2 && GestureUtils.GestureRecognizer.Recognize(new Array(points)); let actionPerformed = false; - if (result && result.Score > 0.7) { + if (Doc.UserDoc().recognizeGestures && result && result.Score > 0.7) { switch (result.Name) { case GestureUtils.Gestures.Box: actionPerformed = this.dispatchGesture(GestureUtils.Gestures.Box); break; case GestureUtils.Gestures.StartBracket: actionPerformed = this.dispatchGesture(GestureUtils.Gestures.StartBracket); break; |
