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