Skip to content

3d camera reset after react #5005

Description

@nicolaskruchten

This one has a very specific replication path from this pen: https://codepen.io/nicolaskruchten/pen/NWxoWGR?editors=0010

  1. newPlot@0
  2. react@1 (this is the critical step to get the figure into the broken state)
  3. do turntable interaction via drag
  4. click on "zoom" modebar icon: the turntable interaction is undone!

Alternate path:

  1. newPlot@0
  2. react@1 (this is the critical step to get the figure into the broken state)
  3. click on "zoom" modebar icon and zoom a bit via drag
  4. click on "turntable" modebar icon: the zoom interaction is undone!

Activity

  1. nicolaskruchten commented on Jul 21, 2020

    @nicolaskruchten
    ContributorAuthor

    Related to #5004 ? same pen... with uirevision set.

  2. archmoj commented on Jul 21, 2020

    @archmoj
    Contributor

    This one is a regression since v1.51.0 and the side effect of #4292.

  3. nicolaskruchten commented on Jul 22, 2020

    @nicolaskruchten
    ContributorAuthor

    Even in 1.50.0 it doesn't behave particularly well... it's easy to get into situations where clicking among the modebar buttons changes the zoom level.

  4. archmoj commented on Jul 22, 2020

    @archmoj
    Contributor

    Even in 1.50.0 it doesn't behave particularly well... it's easy to get into situations where clicking among the modebar buttons changes the zoom level.

    @nicolaskruchten thanks for investigating that using v1.50.0.
    Concerning replicating the original issue, would you please keep the version in the original pen at 1.54.6?
    Thank you.

  5. nicolaskruchten commented on Jul 22, 2020

    @nicolaskruchten
    ContributorAuthor

    Sorry, I didn't fork! I've pinned the pen to -latest

  6. nicolaskruchten commented on Jul 28, 2020

    @nicolaskruchten
    ContributorAuthor

    this seems to be the case even switching from zoom to pan and back

  7. self-assigned this
    on Jul 29, 2020
  8. archmoj commented on Jul 29, 2020

    @archmoj
    Contributor

    Seems related to undefined initial camera position.

  9. archmoj commented on Jul 29, 2020

    @archmoj
    Contributor

    This is very strange bug. The fix works in the dashboard but not in a codepen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething brokenregressionthis used to work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions