window.addEventListener(
'deviceorientationabsolute'
, () => {
alert(
'rotation'
)
},
true
)
window.addEventListener(
'deviceorientation'
, () => {
alert(
'rotation'
)
},
true
)
window.addEventListener(
'deviceorientationabsolute'
, () => {
alert(
'rotation'
)
},
true
)
window.addEventListener(
'deviceorientation'
, () => {
alert(
'rotation'
)
},
true
)