My Code:
$('#divid').on('mozfullscreenchange webkitfullscreenchange fullscreenchange MSFullscreenChange', notify);
$('#divid').bind('mozfullscreenchange webkitfullscreenchange fullscreenchange MSFullscreenChange', notify);
webkitfullscreenchange
works as expected, but mozfullscreenchange
seems to do nothing.
.bind
doesn't help either.
What am I doing wrong?
According to the last comment here:
the event is fired at the document, not at the element that goes full-screen
They also say it is documented on mozilla developer pages.
So put the listener on a document
, not on the element.