Skip to content

Commit

Permalink
Fix resize this binding
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBartlett committed Mar 13, 2021
1 parent d64f859 commit 6b41e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class App

document.body.appendChild(this.renderer.domElement);

window.addEventListener("resize", this.onWindowResize, false);
window.addEventListener("resize", this.onWindowResize.bind(this), false);

this.animate();
}
Expand Down

0 comments on commit 6b41e84

Please sign in to comment.