You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Double click to reset zoom when an axis range is specified causes the double click zoom out behavior to alternate between the specified range and fully zoomed out on subsequent double clicks.
Reproduction
Create new plot with a trace using Plotly.newPlot
Specify a layout where at least one axis has a range specified
Double click to fully zoom out
Double click again to zoom back in to the specified range
Double clicking to zoom out multiple times should not alternate between zoom states (step 4 above should result in nothing happening)
Possibly related issues
#2957, which got merged with #2718
While they touch on few related points, they don't seem to mention anything about the alternating issue I'm experiencing.
The text was updated successfully, but these errors were encountered:
Stumbled upon this while (I think) encountering the same / similar thing on the Python side. I'm curious if the doubleClick behavior is what you're referring to. I think the alternation between zoom states is by design - in that it will move between reset and autosize because reset+autosize is the default behavior. Looking at your codepen, you could modify it this way to see the different options. I'm wondering if reset is the behavior you're looking for? In that once you zoom in, a double click will reset it then do nothing else?
EDIT: Reading it through some more maybe you actually want just autosize?
// var config = {doubleClick: false}varconfig={doubleClick: 'reset'}// var config = {doubleClick: 'autosize'}// var config = {doubleClick: 'reset+autosize'}Plotly.newPlot('myDiv',data,layout,config);
Double click to reset zoom when an axis range is specified causes the double click zoom out behavior to alternate between the specified range and fully zoomed out on subsequent double clicks.
Reproduction
See: https://codepen.io/Kurappu/pen/jOxpMvj
Expected
Double clicking to zoom out multiple times should not alternate between zoom states (step 4 above should result in nothing happening)
Possibly related issues
#2957, which got merged with #2718
While they touch on few related points, they don't seem to mention anything about the alternating issue I'm experiencing.
The text was updated successfully, but these errors were encountered: