From 21154a5ef494f82baa966e8f08974a55cd804f73 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Thu, 30 Aug 2018 10:22:31 -0400 Subject: [PATCH] Fix: Properly exit fullscreen on esc press --- source/js/viewer-core.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/js/viewer-core.js b/source/js/viewer-core.js index 17ffb01f..0a805af3 100644 --- a/source/js/viewer-core.js +++ b/source/js/viewer-core.js @@ -285,9 +285,7 @@ export default class ViewerCore { if (e.keyCode === 27) { - this.reloadViewer({ - inFullscreen: !this.settings.inFullscreen - }); + this.publicInstance.leaveFullscreenMode(); } }