fix focus issue when mouse is offscreen

This commit is contained in:
Dante Ruiz 2018-06-13 17:07:05 -07:00
parent 883c758722
commit abee3e8b96

View file

@ -177,6 +177,10 @@ function goActive() {
UserActivityLogger.toggledAway(false);
MyAvatar.isAway = false;
if (!Window.hasFocus()) {
Window.setFocus();
}
}
MyAvatar.wentAway.connect(setAwayProperties);