Fix for setting pressed property of undefined (Fixes #1102)

This commit is contained in:
Sam Potts 2018-08-13 23:46:58 +10:00
parent 1aeef81288
commit 95f6fa2731

View File

@ -277,7 +277,7 @@ class Listeners {
const { controls } = elements;
// Remove button states for fullscreen
if (event.type === 'enterfullscreen') {
if (controls && event.type === 'enterfullscreen') {
controls.pressed = false;
controls.hover = false;
}