-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable doubleclick #3991
Configurable doubleclick #3991
Conversation
Thanks very much for the PR! I think We'll also need to make all subplots including the ones that don't use Thanks again, let me know if you any other questions. |
Ah yes, that makes more sense. Can I add extra commits to this PR, or? |
Alright, I changed it to use the config object. I went through the geo & mapbox code & couldn't find anything doublclick related that doesn't come from dragelem/ or legend/ |
See plotly.js/src/plots/geo/geo.js Line 436 in 3d383b7
which uses the d3 double click handler plotly.js/src/plots/mapbox/mapbox.js Lines 193 to 211 in 3d383b7
which uses mapbox-gl's double click handler There might be a way to make those two handlers adhere to |
this here is the failing test (ref: https://circleci.com/gh/plotly/plotly.js/43400?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link) |
@etpinard sorry, but I can't get the tests to run properly locally on my end + really don't know how to properly write new tests. Would you mind taking this up? :-) |
TODO (that hopefully I'll have time to do before 1.49.0 is ready):
|
cc @plotly/plotly_js this PR is now |
Add an option 'doubleClickDelay' to the layout object (0 - 1000ms), to optionally overwrite the default 300ms doubleclick delay
#2206
first time making a PR (and don't really work with git), so sorry in advance if i did something wrong :-)