Skip to content

Commit c56f223

Browse files
committed
clarify purpose of slop option in assets/click
1 parent a52877f commit c56f223

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jasmine/assets/click.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ var Lib = require('../../../src/lib');
2121
* @param {bool} cancelContext: act as though `preventDefault` was called during a `contextmenu`
2222
* handler, which stops native contextmenu and therefore allows mouseup events to be fired.
2323
* Only relevant if button=2 or ctrlKey=true.
24-
* @param {array(2)} opts.slop - shift [x, y] between mousedown and mouseup
25-
* to simulate a sloppy click
24+
* @param {array(2)} opts.slop - shift [x, y] between mousedown and mouseup.
25+
* Just for testing purposes, to simulate a sloppy click
2626
*/
2727
module.exports = function click(x, y, optsIn) {
2828
var opts = Lib.extendFlat({}, optsIn || {});

0 commit comments

Comments
 (0)