plotly/plotly.js

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

Offen

#7.914 geöffnet am 21.07.2026

 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (1.846 Forks)batch import
P2buggood first issuegood for agentsize: 1

Repository-Metriken

Stars
 (15.964 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 35T 19h) (36 gemergte PRs in 30 T)

Beschreibung

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

https://github.com/user-attachments/assets/08c53c01-0fca-4845-8b59-06e837382884

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.

Contributor Guide