Skip to content

Commit

Permalink
Fix draw issue on hidden screen
Browse files Browse the repository at this point in the history
  • Loading branch information
debugger22 committed Oct 10, 2016
1 parent 684dd31 commit 0d9e7ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function playFromQueueExchange1(){
var event = eventQueue.shift();
if(event != null && event.message != null && !shouldEventBeIgnored(event) && svg != null){
playSound(event.message.length*1.1, event.type);
if(!document.hidden || orgRepoFilterNames != [])
if(!document.hidden)
drawEvent(event, svg);
}
setTimeout(playFromQueueExchange1, Math.floor(Math.random() * 1000) + 500);
Expand All @@ -257,7 +257,7 @@ function playFromQueueExchange2(){
var event = eventQueue.shift();
if(event != null && event.message != null && !shouldEventBeIgnored(event) && svg != null){
playSound(event.message.length, event.type);
if(!document.hidden || orgRepoFilterNames != [])
if(!document.hidden)
drawEvent(event, svg);
}
setTimeout(playFromQueueExchange2, Math.floor(Math.random() * 800) + 500);
Expand Down

0 comments on commit 0d9e7ac

Please sign in to comment.