We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 073c342 + 72c2269 commit c9a6b3bCopy full SHA for c9a6b3b
draftlogs/7474_fix.md
@@ -0,0 +1 @@
1
+- Fix scroll wheel zoom for geo subplots in Safari [#7474](https://github.com/plotly/plotly.js/pull/7474)
src/lib/events.js
@@ -59,6 +59,16 @@ var Events = {
59
internalEv.emit(event, data);
60
};
61
62
+ /*
63
+ * Add a dummy event handler for 'wheel' event for Safari
64
+ * to enable mouse wheel zoom.
65
+ * https://github.com/d3/d3/issues/3035
66
+ * https://github.com/plotly/plotly.js/issues/7452
67
+ */
68
+ if(typeof plotObj.addEventListener === 'function') {
69
+ plotObj.addEventListener("wheel", () => {});
70
+ }
71
+
72
return plotObj;
73
},
74
0 commit comments