diff --git a/src/components/Certifications.tsx b/src/components/Certifications.tsx index 2d2a756..175bb3c 100644 --- a/src/components/Certifications.tsx +++ b/src/components/Certifications.tsx @@ -62,13 +62,14 @@ export default function Certifications({ certifications, extraCerts = [], sectio const originalViewportContent = viewportMeta?.getAttribute('content') || 'width=device-width, initial-scale=1.0'; if (selectedCert || isZoomOpen) { + document.documentElement.style.overflow = 'hidden'; document.body.style.overflow = 'hidden'; + document.documentElement.style.overscrollBehavior = 'none'; + document.body.style.overscrollBehavior = 'none'; + if (isZoomOpen) { - document.documentElement.style.overflow = 'hidden'; document.documentElement.style.touchAction = 'none'; - document.documentElement.style.overscrollBehavior = 'none'; document.body.style.touchAction = 'none'; - document.body.style.overscrollBehavior = 'none'; if (viewportMeta) { viewportMeta.setAttribute('content', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no'); } @@ -615,14 +616,14 @@ export default function Certifications({ certifications, extraCerts = [], sectio {/* ─── Detail Modal (Responsive 2-Column Desktop, Scrollable Mobile) ─── */} {selectedCert && (