keep window z order on window resize

This commit is contained in:
HF 2022-08-15 19:13:58 +02:00
parent 4c7aa66158
commit 0a0acf7e12

View File

@ -510,6 +510,7 @@ export default function windows(
yPos: Math.min(yMax, yPos),
width: Math.min(winWidth, width - SCREEN_MARGIN_S),
height: Math.min(winHeight, height - SCREEN_MARGIN_S),
z: positions[id].z,
};
} else {
newPositions[id] = positions[id];