We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c56af44 commit 55c1113Copy full SHA for 55c1113
src/environment/environment.js
@@ -324,12 +324,14 @@ define(function(require) {
324
}
325
};
326
327
- /*
328
- * Disables scaling for retina display. By default, the pixels
329
- * are scaled for the display.
+ /**
+ * If argument is given, sets the sketch to fullscreen or not based on the
+ * value of the argument. If no argument is given, returns the current
330
+ * fullscreen state. Note that due to browser restrictions this can only
331
+ * be called on user input, for example, on mouse press like the example
332
+ * below.
333
*
334
* @method devicePixelScaling
- * @param {Boolean} val whether the sketch should be scaled or not
335
* @example
336
* <div>
337
* <code>
0 commit comments