File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,11 @@ export function getScreenCTM(
66 workaroundRect : DOMRectReadOnly ,
77) {
88 const { userAgent } = navigator ;
9- const workaroundNeeded =
10- userAgent . indexOf ( 'Firefox' ) >= 0 ||
11- userAgent . indexOf ( 'Epiphany' ) >= 0 ||
12- userAgent . indexOf ( 'Safari' ) >= 0 ;
9+ const workaroundNeeded = userAgent . indexOf ( 'Epiphany' ) >= 0 || userAgent . indexOf ( 'Safari' ) >= 0 ;
1310
1411 if ( workaroundNeeded ) {
15- // Firefox's getScreenCTM() is broken: https://bugzilla.mozilla.org/show_bug.cgi?id=1610093
12+ // In some browsers, getScreenCTM() is broken.
13+ // It happened on FireFox, but they have fixed the issue since: https://bugzilla.mozilla.org/show_bug.cgi?id=1610093
1614 const targetCTM = target . getCTM ( ) ;
1715 const workaroundCTM = workaroundElement ?. getCTM ( ) ;
1816 const boundingRect = workaroundElement ?. getBoundingClientRect ( ) ;
You can’t perform that action at this time.
0 commit comments