File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments