diff --git a/src/ui/handler/scroll_zoom.js b/src/ui/handler/scroll_zoom.js index 74084468297..641fab8c471 100644 --- a/src/ui/handler/scroll_zoom.js +++ b/src/ui/handler/scroll_zoom.js @@ -391,7 +391,7 @@ class ScrollZoomHandler { } _isFullscreen() { - return window.document.fullscreenElement !== null; + return !!window.document.fullscreenElement; } _showBlockerAlert() {