Dispatch restore instead of resize when returning from HTML5 fullscreen

This commit is contained in:
Joshua Granick
2018-07-24 12:51:12 -07:00
parent 73fe2183d1
commit 70f17324ca

View File

@@ -525,7 +525,8 @@ class HTML5Window {
parent.__fullscreen = false;
// TODO: Handle a different way?
parent.onResize.dispatch (parent.__width, parent.__height);
parent.onRestore.dispatch ();
// parent.onResize.dispatch (parent.__width, parent.__height);
var changeEvents = [ "fullscreenchange", "mozfullscreenchange", "webkitfullscreenchange", "MSFullscreenChange" ];
var errorEvents = [ "fullscreenerror", "mozfullscreenerror", "webkitfullscreenerror", "MSFullscreenError" ];