deviceorientation.json 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  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. "76":"a"
  54. },
  55. "firefox":{
  56. "2":"n",
  57. "3":"n",
  58. "3.5":"n",
  59. "3.6":"p",
  60. "4":"p",
  61. "5":"p",
  62. "6":"a",
  63. "7":"a",
  64. "8":"a",
  65. "9":"a",
  66. "10":"a",
  67. "11":"a",
  68. "12":"a",
  69. "13":"a",
  70. "14":"a",
  71. "15":"a",
  72. "16":"a",
  73. "17":"a",
  74. "18":"a",
  75. "19":"a",
  76. "20":"a",
  77. "21":"a",
  78. "22":"a",
  79. "23":"a",
  80. "24":"a",
  81. "25":"a",
  82. "26":"a",
  83. "27":"a",
  84. "28":"a",
  85. "29":"a",
  86. "30":"a",
  87. "31":"a",
  88. "32":"a",
  89. "33":"a",
  90. "34":"a",
  91. "35":"a",
  92. "36":"a",
  93. "37":"a",
  94. "38":"a",
  95. "39":"a",
  96. "40":"a",
  97. "41":"a",
  98. "42":"a",
  99. "43":"a",
  100. "44":"a",
  101. "45":"a",
  102. "46":"a",
  103. "47":"a",
  104. "48":"a",
  105. "49":"a",
  106. "50":"a",
  107. "51":"a",
  108. "52":"a",
  109. "53":"a",
  110. "54":"a",
  111. "55":"a",
  112. "56":"a",
  113. "57":"a",
  114. "58":"a",
  115. "59":"a",
  116. "60":"a",
  117. "61":"a",
  118. "62":"a",
  119. "63":"a",
  120. "64":"a",
  121. "65":"a",
  122. "66":"a",
  123. "67":"a",
  124. "68":"a",
  125. "69":"a",
  126. "70":"a",
  127. "71":"a"
  128. },
  129. "chrome":{
  130. "4":"n",
  131. "5":"n",
  132. "6":"n",
  133. "7":"a",
  134. "8":"a",
  135. "9":"a",
  136. "10":"a",
  137. "11":"a",
  138. "12":"a",
  139. "13":"a",
  140. "14":"a",
  141. "15":"a",
  142. "16":"a",
  143. "17":"a",
  144. "18":"a",
  145. "19":"a",
  146. "20":"a",
  147. "21":"a",
  148. "22":"a",
  149. "23":"a",
  150. "24":"a",
  151. "25":"a",
  152. "26":"a",
  153. "27":"a",
  154. "28":"a",
  155. "29":"a",
  156. "30":"a",
  157. "31":"a",
  158. "32":"a",
  159. "33":"a",
  160. "34":"a",
  161. "35":"a",
  162. "36":"a",
  163. "37":"a",
  164. "38":"a",
  165. "39":"a",
  166. "40":"a",
  167. "41":"a",
  168. "42":"a",
  169. "43":"a",
  170. "44":"a",
  171. "45":"a",
  172. "46":"a",
  173. "47":"a",
  174. "48":"a",
  175. "49":"a",
  176. "50":"a",
  177. "51":"a",
  178. "52":"a",
  179. "53":"a",
  180. "54":"a",
  181. "55":"a",
  182. "56":"a",
  183. "57":"a",
  184. "58":"a",
  185. "59":"a",
  186. "60":"a",
  187. "61":"a",
  188. "62":"a",
  189. "63":"a",
  190. "64":"a",
  191. "65":"a",
  192. "66":"a",
  193. "67":"a",
  194. "68":"a",
  195. "69":"a",
  196. "70":"a",
  197. "71":"a",
  198. "72":"a",
  199. "73":"a",
  200. "74":"a",
  201. "75":"a",
  202. "76":"a",
  203. "77":"a",
  204. "78":"a",
  205. "79":"a"
  206. },
  207. "safari":{
  208. "3.1":"n",
  209. "3.2":"n",
  210. "4":"n",
  211. "5":"n",
  212. "5.1":"n",
  213. "6":"n",
  214. "6.1":"n",
  215. "7":"n",
  216. "7.1":"n",
  217. "8":"n",
  218. "9":"n",
  219. "9.1":"n",
  220. "10":"n",
  221. "10.1":"n",
  222. "11":"n",
  223. "11.1":"n",
  224. "12":"n",
  225. "12.1":"n",
  226. "13":"n",
  227. "TP":"n"
  228. },
  229. "opera":{
  230. "9":"n",
  231. "9.5-9.6":"n",
  232. "10.0-10.1":"n",
  233. "10.5":"n",
  234. "10.6":"n",
  235. "11":"n",
  236. "11.1":"n",
  237. "11.5":"n",
  238. "11.6":"n",
  239. "12":"n",
  240. "12.1":"n",
  241. "15":"a",
  242. "16":"a",
  243. "17":"a",
  244. "18":"a",
  245. "19":"a",
  246. "20":"a",
  247. "21":"a",
  248. "22":"a",
  249. "23":"a",
  250. "24":"a",
  251. "25":"a",
  252. "26":"a",
  253. "27":"a",
  254. "28":"a",
  255. "29":"a",
  256. "30":"a",
  257. "31":"a",
  258. "32":"a",
  259. "33":"a",
  260. "34":"a",
  261. "35":"a",
  262. "36":"a",
  263. "37":"a",
  264. "38":"a",
  265. "39":"a",
  266. "40":"a",
  267. "41":"a",
  268. "42":"a",
  269. "43":"a",
  270. "44":"a",
  271. "45":"a",
  272. "46":"a",
  273. "47":"a",
  274. "48":"a",
  275. "49":"a",
  276. "50":"a",
  277. "51":"a",
  278. "52":"a",
  279. "53":"a",
  280. "54":"a",
  281. "55":"a",
  282. "56":"a",
  283. "57":"a",
  284. "58":"a",
  285. "60":"a",
  286. "62":"a"
  287. },
  288. "ios_saf":{
  289. "3.2":"n",
  290. "4.0-4.1":"n",
  291. "4.2-4.3":"a",
  292. "5.0-5.1":"a",
  293. "6.0-6.1":"a",
  294. "7.0-7.1":"a",
  295. "8":"a",
  296. "8.1-8.4":"a",
  297. "9.0-9.2":"a",
  298. "9.3":"a",
  299. "10.0-10.2":"a",
  300. "10.3":"a",
  301. "11.0-11.2":"a",
  302. "11.3-11.4":"a",
  303. "12.0-12.1":"a",
  304. "12.2-12.3":"a",
  305. "13":"a"
  306. },
  307. "op_mini":{
  308. "all":"n"
  309. },
  310. "android":{
  311. "2.1":"n",
  312. "2.2":"n",
  313. "2.3":"n",
  314. "3":"a",
  315. "4":"a",
  316. "4.1":"a",
  317. "4.2-4.3":"a",
  318. "4.4":"a",
  319. "4.4.3-4.4.4":"a",
  320. "67":"a"
  321. },
  322. "bb":{
  323. "7":"n",
  324. "10":"a"
  325. },
  326. "op_mob":{
  327. "10":"n",
  328. "11":"n",
  329. "11.1":"n",
  330. "11.5":"n",
  331. "12":"y",
  332. "12.1":"y",
  333. "46":"a"
  334. },
  335. "and_chr":{
  336. "75":"a"
  337. },
  338. "and_ff":{
  339. "67":"a"
  340. },
  341. "ie_mob":{
  342. "10":"n",
  343. "11":"y"
  344. },
  345. "and_uc":{
  346. "12.12":"a"
  347. },
  348. "samsung":{
  349. "4":"a",
  350. "5.0-5.4":"a",
  351. "6.2-6.4":"a",
  352. "7.2-7.4":"a",
  353. "8.2":"a",
  354. "9.2":"a"
  355. },
  356. "and_qq":{
  357. "1.2":"a"
  358. },
  359. "baidu":{
  360. "7.12":"a"
  361. },
  362. "kaios":{
  363. "2.5":"a"
  364. }
  365. },
  366. "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.",
  367. "notes_by_num":{
  368. "1":"`compassneedscalibration` supported in IE11 only for compatible devices with Windows 8.1+."
  369. },
  370. "usage_perc_y":2.2,
  371. "usage_perc_a":92.34,
  372. "ucprefix":false,
  373. "parent":"",
  374. "keywords":"ondeviceorientation,ondevicemotion",
  375. "ie_id":"deviceorientation,devicemotion",
  376. "chrome_id":"5874690627207168,5556931766779904",
  377. "firefox_id":"device-orientation",
  378. "webkit_id":"specification-deviceorientation-events",
  379. "shown":true
  380. }