From ba92f85d64b9a0f4ef394767f0e61dc7f24d80b1 Mon Sep 17 00:00:00 2001 From: x7md Date: Sat, 21 Dec 2024 20:49:44 +0300 Subject: [PATCH] reverse on mobile --- src/pages/index.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 5afc05b..5208ded 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -114,12 +114,12 @@ import '@/styles/globals.css' document.querySelector("[data-alnaslaa]") ?.setAttribute("style", `clip-path: var(--cutit) !important`); //console.log(state.axis, ) - if(state.delta[1] > 0){ + if(state.delta[1] < 0){ if(document.documentElement.style.getPropertyValue("--scrolling")){ scrolling -= 1; } } - if(state.delta[1] < 0){ + if(state.delta[1] > 0){ scrolling += 1; } }