File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1680,6 +1680,7 @@ class AnnotationEditorUIManager {
1680
1680
}
1681
1681
1682
1682
this . #updateModeCapability = Promise . withResolvers ( ) ;
1683
+ this . #currentDrawingSession?. commitOrRemove ( ) ;
1683
1684
1684
1685
this . #mode = mode ;
1685
1686
if ( mode === AnnotationEditorType . NONE ) {
Original file line number Diff line number Diff line change @@ -215,9 +215,12 @@ class TouchManager {
215
215
if ( evt . touches . length >= 2 ) {
216
216
return ;
217
217
}
218
- this . #touchMoveAC. abort ( ) ;
219
- this . #touchMoveAC = null ;
220
- this . #onPinchEnd?. ( ) ;
218
+ // #touchMoveAC shouldn't be null but it seems that irl it can (see #19793).
219
+ if ( this . #touchMoveAC) {
220
+ this . #touchMoveAC. abort ( ) ;
221
+ this . #touchMoveAC = null ;
222
+ this . #onPinchEnd?. ( ) ;
223
+ }
221
224
222
225
if ( ! this . #touchInfo) {
223
226
return ;
You can’t perform that action at this time.
0 commit comments