We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 220a289 commit 8e51959Copy full SHA for 8e51959
src/display/editor/tools.js
@@ -1680,6 +1680,7 @@ class AnnotationEditorUIManager {
1680
}
1681
1682
this.#updateModeCapability = Promise.withResolvers();
1683
+ this.#currentDrawingSession?.commitOrRemove();
1684
1685
this.#mode = mode;
1686
if (mode === AnnotationEditorType.NONE) {
src/display/touch_manager.js
@@ -215,9 +215,12 @@ class TouchManager {
215
if (evt.touches.length >= 2) {
216
return;
217
218
- this.#touchMoveAC.abort();
219
- this.#touchMoveAC = null;
220
- this.#onPinchEnd?.();
+ // #touchMoveAC shouldn't be null be it seems that irl it can (see #19793).
+ if (this.#touchMoveAC) {
+ this.#touchMoveAC.abort();
221
+ this.#touchMoveAC = null;
222
+ this.#onPinchEnd?.();
223
+ }
224
225
if (!this.#touchInfo) {
226
0 commit comments