how to not call visibility if i made fullscreen
- Lingua principale
- JavaScript
- Stelle
- 1.8k
- Fork
- 106
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
So in my app, I have games and when I click `play` , what I do is call `fullscreen` code which starts the game in `fullscreen` mode.
Somewhere in my app, I have this piece of code:
```js
this.visibility = Visibility.change((event, state) => {
switch (state) {
case 'visible':
break;
case 'hidden':
console.log("coming here ? ");
break;
}
});
```
Now, this works fine for all cases except `fullscreen`. The thing I want is when `fullscreen` gets activated, I don't want it to call `console.log("coming here ?")`. I don't want it to do anything. Is this possible?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.