Skip to content

Commit

Permalink
style(zoom): Update code formate style
Browse files Browse the repository at this point in the history
  • Loading branch information
netil committed Jul 30, 2024
1 parent 7805dd7 commit 78bbf62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ChartInternal/interactions/zoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,9 @@ export default {
// for workaround, register wheel event on <svg> element first
// 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)) {
if (
window.GestureEvent && /^((?!chrome|android|mobile).)*safari/i.test(navigator.userAgent)
) {
svg.on("wheel", () => {});
}

Expand Down

0 comments on commit 78bbf62

Please sign in to comment.