ai / ai/visibilityjs

how to not call visibility if i made fullscreen

オープン
#49 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
1.8k
フォーク
106
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。