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

Don't apply relayout operations to the view that originated the event (GH1086) #1094

Merged
merged 2 commits into from
Aug 6, 2018

Conversation

jonmmease
Copy link
Contributor

See associated discussion and technical notes in #1086

This fixes a zoom stutter that occurred on scroll zoom of 3d plots
…jects.

Before, while scroll zooming on scatter3d trace with multiple views we'd sometimes end up with a _props state of:

{'up': {'x': -0.4, 'y': -0.4, 'z': 0.8},
 'center': {'x': 0, 'y': 0, 'z': 0},
 'eye': {}}

When this happened, accessing a sub-property of eye would always return none, even though values existed in the _prop_defaults dict.

e.g.  fig.layout.scene.camera.eye.x would return None because the eye dict in _props was empty.

Now we just remove the eye property as well if all of it's own properties have been removed:

{'up': {'x': -0.4, 'y': -0.4, 'z': 0.8},
 'center': {'x': 0, 'y': 0, 'z': 0}}
@jonmmease jonmmease merged commit 25482da into master Aug 6, 2018
@nicolaskruchten nicolaskruchten deleted the bug_1086 branch June 19, 2020 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant