Greetings, I would like to ask. There is an orientationchange
event in jQuery Mobile. It works when you turn 0, 90, -90, 180. Is there an alternative event on any js-framework, which is associated with shaking the phone or any turn of the phone?
|
1 answer
He himself decided - his problem, maybe someone will come in handy.
We connect the phonegap js-library, this framework has access to the phone's API.
This method is called Accelerometer , an example implementation can be found there.
|