Trigger events.
parent
18a3ed4a8f
commit
11d9cb2f35
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue