Skip to content
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

Zoom glitch when restyling #346

Closed
Jodana opened this issue Mar 21, 2016 · 2 comments
Closed

Zoom glitch when restyling #346

Jodana opened this issue Mar 21, 2016 · 2 comments
Assignees
Labels
bug something broken

Comments

@Jodana
Copy link

Jodana commented Mar 21, 2016

Whenever you use restyle() to update a trace (affecting x or y points) in a zoomed state, plotly keeps track of the zoomed view. Then, whenever you double-click in order to unzoom, it will either unzoom or return to that zoomed state.

If a second restyle() happens in the same conditions, you can never unzoom completly (it switch between the first recorded zoomed state, and the last one).

Here is how to reproduce:

  1. Zoom wherever you want
  2. Click on the "Restyle" button in order to update the trace
  3. Unzoom
  4. Double-click to switch between global view and zoomed view

Codepen: http://codepen.io/etpinard/pen/eZvKag

@etpinard
Copy link
Contributor

(sorry didn't find a way to enable a more convenient sharing)

Next time you should save you codepen (you may have to make an account) and paste its URL in your bug report.

@etpinard
Copy link
Contributor

Bug confirmed. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

2 participants