deviceorientation.json 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. {
  2. "title":"DeviceOrientation & DeviceMotion events",
  3. "description":"API for detecting orientation and motion events from the device running the browser.",
  4. "spec":"https://www.w3.org/TR/orientation-event/",
  5. "status":"cr",
  6. "links":[
  7. {
  8. "url":"https://www.html5rocks.com/en/tutorials/device/orientation/",
  9. "title":"HTML5 Rocks tutorial"
  10. },
  11. {
  12. "url":"https://raw.github.com/phiggins42/has.js/master/detect/features.js#native-orientation",
  13. "title":"has.js test"
  14. },
  15. {
  16. "url":"http://html5labs.interoperabilitybridges.com/prototypes/device-orientation-events/device-orientation-events/info",
  17. "title":"DeviceOrientation implementation prototype for IE10"
  18. },
  19. {
  20. "url":"http://aurelio.audero.it/demo/device-orientation-api-demo.html",
  21. "title":"Demo"
  22. }
  23. ],
  24. "bugs":[
  25. {
  26. "description":"`DeviceOrientationEvent.beta` has values between -90 and 90 on mobile Safari and between 180 and -180 on Firefox.\r\n`DeviceOrientationEvent.gamma` has values between -180 and 180 on mobile Safari and between 90 and -90 on Firefox.\r\nSee [Firefox reference](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent)\r\nand [Safari reference](https://developer.apple.com/library/safari/documentation/SafariDOMAdditions/Reference/DeviceOrientationEventClassRef/DeviceOrientationEvent/DeviceOrientationEvent.html#//apple_ref/javascript/instp/DeviceOrientationEvent/beta)"
  27. },
  28. {
  29. "description":"Safari on iOS doesn't implement the spec correctly, because alpha is arbitrary instead of relative to true north. Safari instead offers webkitCompassHeading`, which has the opposite sign to alpha and is also relative to magnetic north instead of true north. (see [details](https://github.com/w3c/deviceorientation/issues/6))"
  30. }
  31. ],
  32. "categories":[
  33. "JS API"
  34. ],
  35. "stats":{
  36. "ie":{
  37. "5.5":"n",
  38. "6":"n",
  39. "7":"n",
  40. "8":"n",
  41. "9":"n",
  42. "10":"n",
  43. "11":"a #1"
  44. },
  45. "edge":{
  46. "12":"y",
  47. "13":"y",
  48. "14":"y",
  49. "15":"y",
  50. "16":"y",
  51. "17":"y",
  52. "18":"y"
  53. },
  54. "firefox":{
  55. "2":"n",
  56. "3":"n",
  57. "3.5":"n",
  58. "3.6":"p",
  59. "4":"p",
  60. "5":"p",
  61. "6":"a",
  62. "7":"a",
  63. "8":"a",
  64. "9":"a",
  65. "10":"a",
  66. "11":"a",
  67. "12":"a",
  68. "13":"a",
  69. "14":"a",
  70. "15":"a",
  71. "16":"a",
  72. "17":"a",
  73. "18":"a",
  74. "19":"a",
  75. "20":"a",
  76. "21":"a",
  77. "22":"a",
  78. "23":"a",
  79. "24":"a",
  80. "25":"a",
  81. "26":"a",
  82. "27":"a",
  83. "28":"a",
  84. "29":"a",
  85. "30":"a",
  86. "31":"a",
  87. "32":"a",
  88. "33":"a",
  89. "34":"a",
  90. "35":"a",
  91. "36":"a",
  92. "37":"a",
  93. "38":"a",
  94. "39":"a",
  95. "40":"a",
  96. "41":"a",
  97. "42":"a",
  98. "43":"a",
  99. "44":"a",
  100. "45":"a",
  101. "46":"a",
  102. "47":"a",
  103. "48":"a",
  104. "49":"a",
  105. "50":"a",
  106. "51":"a",
  107. "52":"a",
  108. "53":"a",
  109. "54":"a",
  110. "55":"a",
  111. "56":"a",
  112. "57":"a",
  113. "58":"a",
  114. "59":"a",
  115. "60":"a",
  116. "61":"a",
  117. "62":"a",
  118. "63":"a",
  119. "64":"a",
  120. "65":"a",
  121. "66":"a"
  122. },
  123. "chrome":{
  124. "4":"n",
  125. "5":"n",
  126. "6":"n",
  127. "7":"a",
  128. "8":"a",
  129. "9":"a",
  130. "10":"a",
  131. "11":"a",
  132. "12":"a",
  133. "13":"a",
  134. "14":"a",
  135. "15":"a",
  136. "16":"a",
  137. "17":"a",
  138. "18":"a",
  139. "19":"a",
  140. "20":"a",
  141. "21":"a",
  142. "22":"a",
  143. "23":"a",
  144. "24":"a",
  145. "25":"a",
  146. "26":"a",
  147. "27":"a",
  148. "28":"a",
  149. "29":"a",
  150. "30":"a",
  151. "31":"a",
  152. "32":"a",
  153. "33":"a",
  154. "34":"a",
  155. "35":"a",
  156. "36":"a",
  157. "37":"a",
  158. "38":"a",
  159. "39":"a",
  160. "40":"a",
  161. "41":"a",
  162. "42":"a",
  163. "43":"a",
  164. "44":"a",
  165. "45":"a",
  166. "46":"a",
  167. "47":"a",
  168. "48":"a",
  169. "49":"a",
  170. "50":"a",
  171. "51":"a",
  172. "52":"a",
  173. "53":"a",
  174. "54":"a",
  175. "55":"a",
  176. "56":"a",
  177. "57":"a",
  178. "58":"a",
  179. "59":"a",
  180. "60":"a",
  181. "61":"a",
  182. "62":"a",
  183. "63":"a",
  184. "64":"a",
  185. "65":"a",
  186. "66":"a",
  187. "67":"a",
  188. "68":"a",
  189. "69":"a",
  190. "70":"a",
  191. "71":"a",
  192. "72":"a",
  193. "73":"a",
  194. "74":"a"
  195. },
  196. "safari":{
  197. "3.1":"n",
  198. "3.2":"n",
  199. "4":"n",
  200. "5":"n",
  201. "5.1":"n",
  202. "6":"n",
  203. "6.1":"n",
  204. "7":"n",
  205. "7.1":"n",
  206. "8":"n",
  207. "9":"n",
  208. "9.1":"n",
  209. "10":"n",
  210. "10.1":"n",
  211. "11":"n",
  212. "11.1":"n",
  213. "12":"n",
  214. "TP":"n"
  215. },
  216. "opera":{
  217. "9":"n",
  218. "9.5-9.6":"n",
  219. "10.0-10.1":"n",
  220. "10.5":"n",
  221. "10.6":"n",
  222. "11":"n",
  223. "11.1":"n",
  224. "11.5":"n",
  225. "11.6":"n",
  226. "12":"n",
  227. "12.1":"n",
  228. "15":"a",
  229. "16":"a",
  230. "17":"a",
  231. "18":"a",
  232. "19":"a",
  233. "20":"a",
  234. "21":"a",
  235. "22":"a",
  236. "23":"a",
  237. "24":"a",
  238. "25":"a",
  239. "26":"a",
  240. "27":"a",
  241. "28":"a",
  242. "29":"a",
  243. "30":"a",
  244. "31":"a",
  245. "32":"a",
  246. "33":"a",
  247. "34":"a",
  248. "35":"a",
  249. "36":"a",
  250. "37":"a",
  251. "38":"a",
  252. "39":"a",
  253. "40":"a",
  254. "41":"a",
  255. "42":"a",
  256. "43":"a",
  257. "44":"a",
  258. "45":"a",
  259. "46":"a",
  260. "47":"a",
  261. "48":"a",
  262. "49":"a",
  263. "50":"a",
  264. "51":"a",
  265. "52":"a",
  266. "53":"a",
  267. "54":"a",
  268. "55":"a",
  269. "56":"a",
  270. "57":"a"
  271. },
  272. "ios_saf":{
  273. "3.2":"n",
  274. "4.0-4.1":"n",
  275. "4.2-4.3":"a",
  276. "5.0-5.1":"a",
  277. "6.0-6.1":"a",
  278. "7.0-7.1":"a",
  279. "8":"a",
  280. "8.1-8.4":"a",
  281. "9.0-9.2":"a",
  282. "9.3":"a",
  283. "10.0-10.2":"a",
  284. "10.3":"a",
  285. "11.0-11.2":"a",
  286. "11.3-11.4":"a",
  287. "12.0-12.1":"a"
  288. },
  289. "op_mini":{
  290. "all":"n"
  291. },
  292. "android":{
  293. "2.1":"n",
  294. "2.2":"n",
  295. "2.3":"n",
  296. "3":"a",
  297. "4":"a",
  298. "4.1":"a",
  299. "4.2-4.3":"a",
  300. "4.4":"a",
  301. "4.4.3-4.4.4":"a",
  302. "67":"a"
  303. },
  304. "bb":{
  305. "7":"n",
  306. "10":"a"
  307. },
  308. "op_mob":{
  309. "10":"n",
  310. "11":"n",
  311. "11.1":"n",
  312. "11.5":"n",
  313. "12":"y",
  314. "12.1":"y",
  315. "46":"a"
  316. },
  317. "and_chr":{
  318. "70":"a"
  319. },
  320. "and_ff":{
  321. "63":"a"
  322. },
  323. "ie_mob":{
  324. "10":"n",
  325. "11":"y"
  326. },
  327. "and_uc":{
  328. "11.8":"a"
  329. },
  330. "samsung":{
  331. "4":"a",
  332. "5":"a",
  333. "6.2":"a",
  334. "7.2":"a"
  335. },
  336. "and_qq":{
  337. "1.2":"a"
  338. },
  339. "baidu":{
  340. "7.12":"a"
  341. }
  342. },
  343. "notes":"Partial support refers to the lack of compassneedscalibration event. Partial support also refers to the lack of devicemotion event support for Chrome 30- and Opera. Opera Mobile 14 lost the ondevicemotion event support. Firefox 3.6, 4 and 5 support the non-standard [MozOrientation](https://developer.mozilla.org/en/DOM/MozOrientation) event.",
  344. "notes_by_num":{
  345. "1":"`compassneedscalibration` supported in IE11 only for compatible devices with Windows 8.1+."
  346. },
  347. "usage_perc_y":2.17,
  348. "usage_perc_a":88.45,
  349. "ucprefix":false,
  350. "parent":"",
  351. "keywords":"ondeviceorientation,ondevicemotion",
  352. "ie_id":"deviceorientation,devicemotion",
  353. "chrome_id":"5874690627207168,5556931766779904",
  354. "firefox_id":"device-orientation",
  355. "webkit_id":"specification-deviceorientation-events",
  356. "shown":true
  357. }