mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 19:32:58 +02:00
fix focus issue when mouse is offscreen
This commit is contained in:
parent
883c758722
commit
abee3e8b96
1 changed files with 4 additions and 0 deletions
|
@ -177,6 +177,10 @@ function goActive() {
|
|||
|
||||
UserActivityLogger.toggledAway(false);
|
||||
MyAvatar.isAway = false;
|
||||
|
||||
if (!Window.hasFocus()) {
|
||||
Window.setFocus();
|
||||
}
|
||||
}
|
||||
|
||||
MyAvatar.wentAway.connect(setAwayProperties);
|
||||
|
|
Loading…
Reference in a new issue