Skip to content

Commit

Permalink
refactor(zoom): navigator to be referenced from window
Browse files Browse the repository at this point in the history
update the use of navigator object from window

Ref #3857
  • Loading branch information
netil authored Aug 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 5ce41c7 commit 991fabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ChartInternal/interactions/zoom.ts
Original file line number Diff line number Diff line change
@@ -338,7 +338,7 @@ export default {
// https://bugs.webkit.org/show_bug.cgi?id=226683#c3
// https://stackoverflow.com/questions/67836886/wheel-event-is-not-fired-on-a-svg-group-element-in-safari
if (
window.GestureEvent && /^((?!chrome|android|mobile).)*safari/i.test(navigator.userAgent)
window.GestureEvent && /^((?!chrome|android|mobile).)*safari/i.test(window.navigator?.userAgent)
) {
svg.on("wheel", () => {});
}

0 comments on commit 991fabb

Please sign in to comment.