Skip to content

Commit 5b1e895

Browse files
committed
add comment about click events simulators
1 parent 782f692 commit 5b1e895

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/jasmine/tests/click_test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ describe('click event', function() {
1717
clientY = 223,
1818
gd;
1919

20+
// cartesian click events events use the hover data
21+
// from the mousemove events and then simulate
22+
// a click event on mouseup
2023
function click() {
2124
mouseEvent('mousemove', clientX, clientY);
2225
mouseEvent('mousedown', clientX, clientY);

test/jasmine/tests/select_test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ describe('select box and lasso', function() {
2525
mouseEvent('mouseup', path[len - 1][0], path[len - 1][1]);
2626
}
2727

28+
// cartesian click events events use the hover data
29+
// from the mousemove events and then simulate
30+
// a click event on mouseup
2831
function click(x, y) {
2932
mouseEvent('mousemove', x, y);
3033
mouseEvent('mousedown', x, y);

0 commit comments

Comments
 (0)