Skip to content

Commit 5b6920c

Browse files
committed
Vis handler no longer responsible for focus or isOver events.
1 parent 09bd56b commit 5b6920c

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

src/boot/VisibilityHandler.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -109,26 +109,6 @@ var VisibilityHandler = function (game)
109109
if (window.focus && game.config.autoFocus)
110110
{
111111
window.focus();
112-
113-
game.canvas.addEventListener('mousedown', function ()
114-
{
115-
window.focus();
116-
}, { passive: true });
117-
}
118-
119-
if (game.canvas)
120-
{
121-
game.canvas.onmouseout = function ()
122-
{
123-
game.isOver = false;
124-
eventEmitter.emit('mouseout');
125-
};
126-
127-
game.canvas.onmouseover = function ()
128-
{
129-
game.isOver = true;
130-
eventEmitter.emit('mouseover');
131-
};
132112
}
133113
};
134114

0 commit comments

Comments
 (0)