Skip to content

Commit fcb8351

Browse files
committed
Reset selection by doubleclick
1 parent 52ae0c5 commit fcb8351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/scattergl/convert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ proto.updateFast = function(options) {
401401
this.idToIndex = idToIndex;
402402

403403
// form selected set
404-
if(selection) {
404+
if(selection && selection.length) {
405405
selPositions = new Float64Array(2 * selection.length);
406406

407407
for(i = 0, l = selection.length; i < l; i++) {

0 commit comments

Comments
 (0)