Skip to content

Commit dc4fc32

Browse files
committed
robustify cartesian_interact_test doubleclicker
1 parent 2da3544 commit dc4fc32

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/jasmine/tests/cartesian_interact_test.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,10 @@ describe('axis zoom/pan and main plot zoom', function() {
274274
}
275275

276276
function doDblClick(subplot, directions) {
277-
return function() { return doubleClick(getDragger(subplot, directions)); };
277+
return function() {
278+
gd._mouseDownTime = 0; // ensure independence from any previous clicks
279+
return doubleClick(getDragger(subplot, directions));
280+
};
278281
}
279282

280283
function checkRanges(newRanges, msg) {

0 commit comments

Comments
 (0)