Trigger events.

d6
Frode Petterson 2015-02-09 11:47:33 +01:00
parent 18a3ed4a8f
commit 11d9cb2f35
1 changed files with 3 additions and 0 deletions

View File

@ -327,6 +327,7 @@ H5P.fullScreen = function ($element, instance, exitCallback, body) {
// Do not rely on window resize events. // Do not rely on window resize events.
instance.$.trigger('resize'); instance.$.trigger('resize');
instance.$.trigger('focus'); instance.$.trigger('focus');
instance.$.trigger('enterFullScreen');
}; };
/** /**
@ -347,6 +348,8 @@ H5P.fullScreen = function ($element, instance, exitCallback, body) {
if (exitCallback !== undefined) { if (exitCallback !== undefined) {
exitCallback(); exitCallback();
} }
instance.$.trigger('exitFullScreen');
}; };
H5P.isFullscreen = true; H5P.isFullscreen = true;