From 2bf12deaf29bda92a192f1f711a3e7f72bb156b2 Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Thu, 31 Jul 2025 19:22:51 +0200 Subject: [PATCH] honestly last attempt at fixing bugged out interaction after clicking project on safari --- src/styles/global.css | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/styles/global.css b/src/styles/global.css index 70fd337..4c69204 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -15,18 +15,21 @@ html { overflow-y: scroll; scroll-behavior: smooth; - *:has(:popover-open) { - pointer-events: none; - touch-action: none; - [popover] { - pointer-events: auto; - touch-action: auto; - } - ::backdrop { - pointer-events: all; - touch-action: manipulation; + @media (min-resolution: .001dpcm) { + *:has(:popover-open) { + pointer-events: none; + touch-action: none; + [popover] { + pointer-events: auto; + touch-action: auto; + } + ::backdrop { + pointer-events: all; + touch-action: manipulation; + } } } + } /* evil hack. this will run for all browsers but safari and similar */