Is there any way to catch the before the "orientationchange"?

Asked

Viewed 35 times

1

In my mobile application (programmed in Javascript), I have a function that is activated when the display orientation is changed.

  $( window ).on( "orientationchange", function( event ) {
     ...
   }

I, even before this function is activated, would like to have another function to store values and stuff. Like: $( window ).before( "orientationchange",....

Is there any way to do that?

  • Take a look at this: https://github.com/evaldsurtans/jquery.beforeorientationchange

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.