Created
January 15, 2017 03:22
-
-
Save kaloncpu57/2477f741cb308025a626efb6edbde9b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This works | |
window.addEventListener('resize', function(e){ | |
var w = window.innerWidth; | |
var h = window.innerHeight; | |
resizeCanvas(w, h); | |
}); | |
//This does not work | |
window.addEventListener('resize', function(e){ | |
resizeCanvas(window.innerWidth, window.innerHeight); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment