Skip to content

Commit ab9d1cc

Browse files
committed
limit range during scattergl update
1 parent c7153ca commit ab9d1cc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/plots/cartesian/dragbox.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,13 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
874874
if(sp._scene) {
875875
var xrng = Lib.simpleMap(xa.range, xa.r2l);
876876
var yrng = Lib.simpleMap(ya.range, ya.r2l);
877+
878+
if(xa.limitRange) xa.limitRange();
879+
if(ya.limitRange) ya.limitRange();
880+
881+
xrng = xa.range;
882+
yrng = ya.range;
883+
877884
sp._scene.update({range: [xrng[0], yrng[0], xrng[1], yrng[1]]});
878885
}
879886
}

0 commit comments

Comments
 (0)