Not triggering onResize on screen rotation
MatteoGioioso opened this issue · comments
Matteo Gioioso commented
Sorry to bother here but I have just noticed that onResize
is not triggered during rotation, only when we are going from landscape to portrait on mobile.
Take a look here: https://codesandbox.io/s/funny-wind-20bvy
Is this expected behavior? If yes what is the workaround to set a new width or height?
Thanks
Brian Vaughn commented
I tested this myself (see here) and was not able to repro. The resize is triggered after rotation in both directions.
Maybe this was a browser bug that has since been fixed.