Skip to content

[BUG]: Background image is rendered at an incorrect size after box zoom followed by mouse wheel zoom out #7914

Open

Description

@JulienIcon

Description

On charts containing a background image with xref: "x" and yref: "y", performing a box zoom followed by a manual zoom out causes the background image to be rendered with an incorrect size and position. It no longer matches the coordinate system defined by xref and yref.

Screenshots/Video

plotly_image_bug.mp4

Steps to reproduce

Here https://codepen.io/JulienIcon/pen/QwdBypd, try to box zoom a small part of the chart and then try to manually zoom out using the mouse wheel

Notes

If the zoom is reset using the default double-click interaction, the background image is rendered correctly again.

Activity

  1. camdecoster commented on Jul 21, 2026

    @camdecoster
    Contributor

    Thanks for the report! Could you see if this is still happening with the latest RC?

  2. JulienIcon commented on Jul 22, 2026

    @JulienIcon
    ContributorAuthor

    I tested it with this latest RC, and the issue is still reproducible

  3. camdecoster commented on Jul 22, 2026

    @camdecoster
    Contributor

    Then it's a bug! Thanks for checking. Our team probably won't be able to look at this for a while, but we can prioritize a PR review if you want to work on it.

  4. nightcityblade commented on Jul 23, 2026

    @nightcityblade

    Hi, I'd like to work on this. I'll submit a PR shortly.

  5. robertclaus commented on Jul 23, 2026

    @robertclaus

    @nightcityblade that would be great! Thank you!

  6. JulienIcon commented on Jul 24, 2026

    @JulienIcon
    ContributorAuthor
  7. devtitus commented on Sep 9, 2026

    @devtitus

    Hi, if this issue is still active, I would like to give a try on this.

  8. emilykl commented on Sep 9, 2026

    @emilykl
    Contributor

    @devtitus Sure, go for it! The issue still exists in the latest plotly.js v4.0.0.

    We recommend that you start by investigating and proposing a potential fix in this issue thread before opening a PR.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions