Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix issue where scattergl traces disappear while zooming or panning #7018

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 2 draftlogs/7018_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix displaying scattergl traces while zooming or panning (regression introduced in 2.26.0) [[#7018](https://github.com/plotly/plotly.js/pull/7018)],
with thanks to @eiriklv for the contribution!
7 changes: 2 additions & 5 deletions 7 src/plots/cartesian/dragbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,14 +886,11 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
ya = sp.yaxis;

if(sp._scene) {
var xrng = Lib.simpleMap(xa.range, xa.r2l);
var yrng = Lib.simpleMap(ya.range, ya.r2l);

if(xa.limitRange) xa.limitRange();
if(ya.limitRange) ya.limitRange();

xrng = xa.range;
yrng = ya.range;
var xrng = Lib.simpleMap(xa.range, xa.r2l);
var yrng = Lib.simpleMap(ya.range, ya.r2l);

sp._scene.update({range: [xrng[0], yrng[0], xrng[1], yrng[1]]});
}
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.