Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit68f04da

Browse files
committed
add dummy 'wheel' event handler to enable scroll zoom on safari
1 parentbf6909b commit68f04da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/plot_api/plot_api.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3663,6 +3663,12 @@ function makePlotFramework(gd) {
36633663
vargd3=d3.select(gd);
36643664
varfullLayout=gd._fullLayout;
36653665

3666+
// Add dummy event handler for 'wheel' event for Safari
3667+
// to enable mouse wheel zoom
3668+
// https://github.com/d3/d3/issues/3035
3669+
// https://github.com/plotly/plotly.js/issues/7452
3670+
gd3.on('wheel',function(){});
3671+
36663672
fullLayout._calcInverseTransform=calcInverseTransform;
36673673
fullLayout._calcInverseTransform(gd);
36683674

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp