Skip to content

Commit

Permalink
fix(slide-potentiometer): not functional in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
AriellaE committed Feb 12, 2025
1 parent 0157d17 commit 93e4bcb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/ctm-workaround.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ export function getScreenCTM(
workaroundRect: DOMRectReadOnly
) {
const { userAgent } = navigator;
const workaroundNeeded = userAgent.indexOf('Firefox') >= 0 || userAgent.indexOf('Epiphany') >= 0;
const workaroundNeeded =
userAgent.indexOf('Firefox') >= 0 ||
userAgent.indexOf('Epiphany') >= 0 ||
userAgent.indexOf('Safari') >= 0;

if (workaroundNeeded) {
// Firefox's getScreenCTM() is broken: https://bugzilla.mozilla.org/show_bug.cgi?id=1610093
Expand Down

0 comments on commit 93e4bcb

Please sign in to comment.