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.
1 parent e6618c6 commit 3ebf3bdCopy full SHA for 3ebf3bd
src/lib/events.js
@@ -65,9 +65,7 @@ var Events = {
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
- }
+ plotObj?.addEventListener?.("wheel", () => {});
71
72
return plotObj;
73
},
0 commit comments