Sha256: 0c12e48acb58e22c5bdd60ec885e0ce6455ff0fa1f3b1aa4cb28a4ba857edc12
Contents?: true
Size: 1.69 KB
Versions: 30
Compression:
Stored size: 1.69 KB
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // Portions ©2008-2011 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ========================================================================== SC.mixin(SC.platform, /** @scope SC.platform */ { /** YES if the ondeviceorientation event on window is supported. @property {Boolean} @default NO */ supportsGyroscope: ('ondeviceorientation' in window), /** YES if the ondeviceorientation event on window has actually been fired. Some platforms have the event but will never fire it. @property {Boolean} @default NO */ hasGyroscope: NO, /** YES if the ondevicemotion event on window is supported. @property {Boolean} @default NO */ supportsAccelerometer: ('ondevicemotion' in window), /** YES if the ondevicemotion event on window has actually been fired. Some platforms have the event but will never fire it. @property {Boolean} @default NO */ hasAccelerometer: NO, /* TODO [CC] Find out the actual values on a multitude of devices. We would want this to be a 'normal' use value... */ /** @property {Number} @default -10 */ accelerationMinimum: function() { // we may want finer grained control of this by platform later return -10; }(), /** @property {Number} @default 10 */ accelerationMaximum: function() { // we may want finer grained control of this by platform later return 10; }() });
Version data entries
30 entries across 30 versions & 1 rubygems