remove webkit hack

This commit is contained in:
hippoz 2022-09-02 16:47:42 +03:00
parent 9ea7c32bfd
commit 476a36b79a
Signed by: hippoz
GPG key ID: 7C52899193467641
2 changed files with 0 additions and 5 deletions

View file

@ -8,9 +8,6 @@ function initViewportSizeHandler() {
if (method === "dynamicViewportUnits") {
root.style.setProperty("--viewportWidth", "100dvw");
root.style.setProperty("--viewportHeight", "100dvh");
} else if (method === "webkitHack") {
root.style.setProperty("--viewportWidth", "100vw");
root.style.setProperty("--viewportHeight", "-webkit-fill-available");
} else if (method === "javascriptResponsive") {
const updateUnits = () => {
root.style.setProperty("--viewportWidth", `${window.innerWidth}px`);

View file

@ -23,8 +23,6 @@ const defaults = {
if (CSS.supports("(width: 1dvw)")) {
return "dynamicViewportUnits";
} else if (isTouch && CSS.supports("(-webkit-touch-callout: none)")) {
return "webkitHack";
} else if (isTouch) {
return "javascriptResponsive";
} else {