Skip to content

Orthographic projection + zoom breaks hover and Plotly.restyle #4514

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

Closed
Luthaf opened this issue Jan 23, 2020 · 6 comments · Fixed by #4562 or #4578
Closed

Orthographic projection + zoom breaks hover and Plotly.restyle #4514

Luthaf opened this issue Jan 23, 2020 · 6 comments · Fixed by #4562 or #4578
Assignees
Labels
bug something broken

Comments

@Luthaf
Copy link

Luthaf commented Jan 23, 2020

See https://codepen.io/luthaf/pen/oNgmavz

After zooming, the hover label no longer correspond to the mouse cursor position:
Capture du 2020-01-23 17-34-35

Additionally, if I try to call Plotly.restyle after zooming, the camera resets to the default position. I don't know if this is intended or accidental.


Maybe related to #4239

@etpinard
Copy link
Contributor

@Luthaf please confirm that this gif

Peek 2020-01-27 15-53

corresponds to the problem you're describing.

@etpinard etpinard added the bug something broken label Jan 27, 2020
@etpinard
Copy link
Contributor

... and thanks very much for reporting, something wrong is indeed happening when hovering after zoom

@Luthaf
Copy link
Author

Luthaf commented Jan 27, 2020

corresponds to the problem you're describing.

For the hover part, yes. There is also the issue with Plotly.restyle resetting the camera, which you can trigger by clicking on a point.

@archmoj archmoj self-assigned this Jan 28, 2020
@archmoj
Copy link
Contributor

archmoj commented Feb 8, 2020

All gl3d traces are affected by this bug.

@Luthaf
Copy link
Author

Luthaf commented Feb 10, 2020

Thanks for the fix, the hover issue seems to be fixed =)

Additionally, if I try to call Plotly.restyle after zooming, the camera resets to the default position. I don't know if this is intended or accidental.

The zoom reset on Restyle seems to still be here on the updated version: https://codepen.io/MojtabaSamimi/pen/WNvbzZp?editors=1000

To trigger it, zoom and then click on a point. The camera resets to the default view.

@Luthaf
Copy link
Author

Luthaf commented Feb 13, 2020

Thanks a lot @archmoj !

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
3 participants