mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 07:28:58 +08:00

In some cases, on Safari iOS, we would recompute the "--composer-vh" variable due to a minimal change in the viewport. This ends up triggering a loop where setting this variable triggers another viewport resize event, which triggers another change of the variable... In order to fix (patch?) this issue, we now have a 1px leeway when checking the difference between the previous and new viewport. Internal ref - t/141088