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(
6
6
workaroundRect : DOMRectReadOnly ,
7
7
) {
8
8
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 ;
13
10
14
11
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
16
14
const targetCTM = target . getCTM ( ) ;
17
15
const workaroundCTM = workaroundElement ?. getCTM ( ) ;
18
16
const boundingRect = workaroundElement ?. getBoundingClientRect ( ) ;
You can’t perform that action at this time.
0 commit comments