Skip to content

Scatter3D does not remember its visual state in certain conditions #5560

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

Open
kirsan31 opened this issue Mar 21, 2021 · 4 comments
Open

Scatter3D does not remember its visual state in certain conditions #5560

kirsan31 opened this issue Mar 21, 2021 · 4 comments
Labels
bug something broken P3 backlog

Comments

@kirsan31
Copy link

Visual state is zoom level, orientation, position, etc...
Checking for saving state: simply click on one of this control buttons: image or call Plotly.restyle. None of these actions should change the visual state.

Bugs briefly:

  1. Mouse wheel zooming not saving last zoom lvl (always reverted to previous zoom lvl).
  2. Touch pad zooming/rotating/moving not saved at all.

Сonditions under which the visual state is not preserved:

Zoom without mouse click - by mouse wheel.
Each odd iteration of zoom level with mouse wheel - will not be remembered. Why odd? Because plotly will save previous zoomlvl after next zoom. In other words - mouse wheel zoomlvl will be reverted 1 step back after restyle or other refresh actions.

PL.mp4

This make mouse wheel zooming not usable with updating by time interval (Plotly.restyle) plots. Side note - if your click any where in the plot after mouse wheel zoom - zoomlvl will be stored.

Any plot manipulation with touch pad.
Here same behavior - touch any where in the plot after manipulating - will store visual state. See video below.

PL2.mp4

Repro: https://codepen.io/k_sze/pen/WXgNoJ (from #2181). You can click buttons or call restyle() function in console.

@nicolaskruchten
Copy link
Contributor

Thanks for the bug report! I think it might be related to #5050 and/or #5005

@kirsan31
Copy link
Author

kirsan31 commented Mar 22, 2021

@nicolaskruchten yes, it's looks similar. But I need to point out, that mouse wheel zoom bug exists in every Scatter3D plot without additional conditions (like react in your examples) :(

@nicolaskruchten
Copy link
Contributor

Indeed, something is going wrong with our camera positioning system... No one on the Plotly team has available bandwidth to look into these right now but we'd love some help fixing these issues!

@kirsan31

This comment has been minimized.

@gvwilson gvwilson self-assigned this Jun 24, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson changed the title Scatter3D not remember it's visual state in certain conditions Scatter3D does not remember its visual state in certain conditions Aug 9, 2024
@gvwilson gvwilson added bug something broken P3 backlog labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog
Projects
None yet
Development

No branches or pull requests

3 participants