Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit db843af

Browse files
author
Francois-Xavier Gentilhomme
committed
[FIX] fixes regression on WS undo
1 parent 741304f commit db843af

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/myscript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14227,11 +14227,11 @@ MyScript = {
1422714227
this._initRenderingCanvas();
1422814228
this._onChange();
1422914229

14230+
this.isStarted = false;
1423014231
if (this._selectedRecognizer instanceof scope.AbstractWSRecognizer) {
1423114232
this._selectedRecognizer.resetWSRecognition();
1423214233
} else {
1423314234
clearTimeout(this._timerId);
14234-
this.isStarted = false;
1423514235
if (this.getTimeout() > 0) {
1423614236
this._timerId = setTimeout(this.recognize.bind(this), this.getTimeout());
1423714237
} else if (this.getTimeout() > -1) {

dist/myscript.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/myscript.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/inkPaper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,11 +738,11 @@
738738
this._initRenderingCanvas();
739739
this._onChange();
740740

741+
this.isStarted = false;
741742
if (this._selectedRecognizer instanceof scope.AbstractWSRecognizer) {
742743
this._selectedRecognizer.resetWSRecognition();
743744
} else {
744745
clearTimeout(this._timerId);
745-
this.isStarted = false;
746746
if (this.getTimeout() > 0) {
747747
this._timerId = setTimeout(this.recognize.bind(this), this.getTimeout());
748748
} else if (this.getTimeout() > -1) {

0 commit comments

Comments
 (0)