Skip to content

Commit

Permalink
Merge pull request #4 from SebastianNette/master
Browse files Browse the repository at this point in the history
fixed bug for window blur
  • Loading branch information
jeromeetienne committed Jul 17, 2014
2 parents e6c2d94 + 4e2a25d commit 8f474ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions threex.keyboardstate.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ THREEx.KeyboardState = function(domElement)

// create callback to bind/unbind window blur event
this._onBlur = function(){
for(var prop in self.keyCodes) self.keyCodes[prop] = false;
for(var prop in self.modifiers) self.modifiers[prop] = false;
for(var prop in _this.keyCodes) _this.keyCodes[prop] = false;
for(var prop in _this.modifiers) _this.modifiers[prop] = false;
}

// bind window blur
Expand Down

0 comments on commit 8f474ac

Please sign in to comment.