martinaglv/jQuery-FullScreen — Issue #1: Event For Exiting Fullscreen
Author: simonferndriger
Created: 2012-02-14 08:06:36+00:00
State: open

Hi

I want to have an event in case the fullscreen is exited.
In case of Chrome this can be done in different ways like clicking on empty areas, pressing Esc key, etc.

I want to have something like:

$(e)
.fullscreen()
.fullscreen_exit(function(){

...

});

Or at least:
$(e).fullscreen({ onexit: function(){

}});

Thank you!

The reason I need this is because I have some JavaScript code with NEEDS to be executed when entering and leaving fullscreen.

I tried it with your callback event, but it gets only fired once when entering fullscreen...