Fix for setting pressed property of undefined (Fixes #1102)
This commit is contained in:
parent
1aeef81288
commit
95f6fa2731
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user