Skip to content

Dragging shape with xref "x2" results in wrong final position #7472

@my-tien

Description

@my-tien

In below codepen that uses plotly.js v2.23.1 is an editable shape attached to x2. When dragging and releasing the shape, it will jump to a new location, it will not stay where it was released.

You can check with newer plotly versions that the bug still exists. I chose the old version just to show that it is an old bug.

I had a brief look at the code and saw that for some reason the shape's xref is changed to 'paper'. This explains the jump, because the coordinates mean something different with xref 'paper'.

https://codepen.io/toffi-fee/pen/Byoormr

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1needed for current cyclebugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions