@@ -559,11 +559,7 @@ const PDFViewerApplication = {
559559 }
560560
561561 if ( appConfig . annotationEditorParams ) {
562- if (
563- ( ( typeof PDFJSDev !== "undefined" && PDFJSDev . test ( "MOZCENTRAL" ) ) ||
564- typeof AbortSignal . any === "function" ) &&
565- annotationEditorMode !== AnnotationEditorType . DISABLE
566- ) {
562+ if ( annotationEditorMode !== AnnotationEditorType . DISABLE ) {
567563 const editorSignatureButton = appConfig . toolbar ?. editorSignatureButton ;
568564 if ( editorSignatureButton && AppOptions . get ( "enableSignatureEditor" ) ) {
569565 editorSignatureButton . parentElement . hidden = false ;
@@ -2075,19 +2071,14 @@ const PDFViewerApplication = {
20752071 _windowAbortController : { signal } ,
20762072 } = this ;
20772073
2078- if (
2079- ( typeof PDFJSDev !== "undefined" && PDFJSDev . test ( "MOZCENTRAL" ) ) ||
2080- typeof AbortSignal . any === "function"
2081- ) {
2082- this . _touchManager = new TouchManager ( {
2083- container : window ,
2084- isPinchingDisabled : ( ) => pdfViewer . isInPresentationMode ,
2085- isPinchingStopped : ( ) => this . overlayManager ?. active ,
2086- onPinching : this . touchPinchCallback . bind ( this ) ,
2087- onPinchEnd : this . touchPinchEndCallback . bind ( this ) ,
2088- signal,
2089- } ) ;
2090- }
2074+ this . _touchManager = new TouchManager ( {
2075+ container : window ,
2076+ isPinchingDisabled : ( ) => pdfViewer . isInPresentationMode ,
2077+ isPinchingStopped : ( ) => this . overlayManager ?. active ,
2078+ onPinching : this . touchPinchCallback . bind ( this ) ,
2079+ onPinchEnd : this . touchPinchEndCallback . bind ( this ) ,
2080+ signal,
2081+ } ) ;
20912082
20922083 function addWindowResolutionChange ( evt = null ) {
20932084 if ( evt ) {
0 commit comments