feat: enable zoom functionality in PhotoswipeReader and adjust global styles to manage pinch-zoom behavior

This commit is contained in:
Julien Froidefond
2025-10-18 21:35:16 +02:00
parent 13626d56c2
commit 0c0456aade
3 changed files with 25 additions and 3 deletions

View File

@@ -7,6 +7,12 @@ body {
overscroll-behavior: none;
}
/* Bloque le zoom partout sauf reader */
body.no-pinch-zoom,
body.no-pinch-zoom * {
touch-action: pan-x pan-y;
}
/* Ajout des règles pour gérer le safe-area-inset sur iOS
@supports (padding-top: env(safe-area-inset-top)) {
body {
@@ -92,6 +98,13 @@ body {
body {
@apply text-foreground;
}
/* Empêche le zoom automatique iOS sur les inputs */
input,
textarea,
select {
font-size: 16px;
}
}
@layer utilities {