debug resize issues

This commit is contained in:
HF 2022-09-28 10:59:10 +02:00
parent b441c76c47
commit 40b7bbead7
2 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,7 @@ persistStore(store, {}, () => {
// listen for resize
//
function onWindowResize() {
console.log('WINDOW RESIZED');
store.dispatch(windowResize());
}
window.addEventListener('resize', onWindowResize);

View File

@ -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;