Closed pkrucz00 closed 1 year ago
This PR addresses the issue of lack of support for dvh on pre-late-2022 browsers which causes the site to scroll and behave strange on mobile devices.
dvh
It uses window.innerHeight property of the browser to calculate the proper pixel value. The css class .h-inner-height changes depending on this value.
window.innerHeight
.h-inner-height
The trick has been taken from this article..
I sincerely hope this code of mine will be removed as quickly as dvh will be widely supported.
This PR addresses the issue of lack of support for
dvh
on pre-late-2022 browsers which causes the site to scroll and behave strange on mobile devices.It uses
window.innerHeight
property of the browser to calculate the proper pixel value. The css class.h-inner-height
changes depending on this value.The trick has been taken from this article..
I sincerely hope this code of mine will be removed as quickly as
dvh
will be widely supported.