forked from ppfun/pixelplanet
debug resize issues
This commit is contained in:
parent
b441c76c47
commit
40b7bbead7
|
@ -106,6 +106,7 @@ persistStore(store, {}, () => {
|
|||
// listen for resize
|
||||
//
|
||||
function onWindowResize() {
|
||||
console.log('WINDOW RESIZED');
|
||||
store.dispatch(windowResize());
|
||||
}
|
||||
window.addEventListener('resize', onWindowResize);
|
||||
|
|
|
@ -103,6 +103,7 @@ class Renderer {
|
|||
}
|
||||
|
||||
resizeHandle() {
|
||||
console.log('WIN RESIZED', window.innerWidth, window.innerHeight);
|
||||
this.viewport.width = window.innerWidth;
|
||||
this.viewport.height = window.innerHeight;
|
||||
this.forceNextRender = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user