Skip to content

Commit 75786e4

Browse files
committed
add fill2d and error2d in clearViewport fallback list
1 parent b81885d commit 75786e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/traces/scattergl/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ function sceneUpdate(gd, subplot) {
301301
clearViewport(scene.select2d, vp);
302302
}
303303

304-
var anyComponent = scene.scatter2d || scene.line2d || (scene.glText || [])[0];
304+
var anyComponent = scene.scatter2d || scene.line2d ||
305+
(scene.glText || [])[0] || scene.fill2d || scene.error2d;
305306
if(anyComponent) clearViewport(anyComponent, vp);
306307
};
307308

0 commit comments

Comments
 (0)