Skip to content

Commit 5f2ed8d

Browse files
author
Lauren McCarthy
committed
Merge pull request #992 from limzykenneth/master
Fix documentation for deviceMoved()
2 parents 24f2901 + efcbdae commit 5f2ed8d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/events/acceleration.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ var shake_threshold = 30;
246246

247247
/**
248248
* The setMoveThreshold() function is used to set the movement threshold for
249-
* the deviceMoved() function.
249+
* the deviceMoved() function. The default threshold is set to 0.5.
250250
*
251251
* @method setMoveThreshold
252252
* @param {number} value The threshold value
@@ -271,8 +271,9 @@ p5.prototype.setShakeThreshold = function(val){
271271
};
272272

273273
/**
274-
* The deviceMoved() function is called when the devices orientation changes
275-
* by more than the threshold value.
274+
* The deviceMoved() function is called when the device is moved by more than
275+
* the threshold value along X, Y or Z axis. The default threshold is set to
276+
* 0.5.
276277
* @method deviceMoved
277278
* @example
278279
* <div>

0 commit comments

Comments
 (0)