diff --git a/frontend/src/components/PostCard.css b/frontend/src/components/PostCard.css
index 196fc05..6aea3f5 100644
--- a/frontend/src/components/PostCard.css
+++ b/frontend/src/components/PostCard.css
@@ -269,6 +269,8 @@
flex-direction: column;
animation: fadeIn 0.2s ease-out;
overflow: hidden;
+ pointer-events: auto;
+ touch-action: none;
}
.fullview-header {
@@ -286,6 +288,7 @@
will-change: transform;
transform: translateZ(0);
flex-shrink: 0;
+ pointer-events: auto;
}
.fullview-counter {
@@ -328,6 +331,7 @@
align-items: center;
justify-content: center;
overflow: hidden;
+ pointer-events: none;
}
.fullview-content img {
@@ -338,6 +342,7 @@
object-fit: contain;
user-select: none;
display: block;
+ pointer-events: none;
}
.fullview-nav-btn {
@@ -355,6 +360,7 @@
backdrop-filter: blur(10px);
transition: background 0.2s, opacity 0.2s;
z-index: 10;
+ pointer-events: auto;
}
.fullview-nav-btn.prev {
@@ -383,6 +389,7 @@
backdrop-filter: blur(10px);
z-index: 10001;
flex-shrink: 0;
+ pointer-events: auto;
}
.fullview-dot {
@@ -392,6 +399,7 @@
background: rgba(255, 255, 255, 0.4);
cursor: pointer;
transition: all 0.2s;
+ pointer-events: auto;
}
.fullview-dot.active {
diff --git a/frontend/src/components/PostCard.jsx b/frontend/src/components/PostCard.jsx
index 5f42b2f..a1c384c 100644
--- a/frontend/src/components/PostCard.jsx
+++ b/frontend/src/components/PostCard.jsx
@@ -263,8 +263,17 @@ export default function PostCard({ post, currentUser, onUpdate }) {
{/* Fullview модал */}
{showFullView && (
-
setShowFullView(false)}>
-
+
e.stopPropagation()}
+ onTouchStart={(e) => e.stopPropagation()}
+ onClick={(e) => {
+ e.stopPropagation()
+ e.preventDefault()
+ setShowFullView(false)
+ }}
+ >
+
e.stopPropagation()}>
@@ -285,6 +294,7 @@ export default function PostCard({ post, currentUser, onUpdate }) {
src={images[currentImageIndex]}
alt={`Full view ${currentImageIndex + 1}`}
draggable={false}
+ onClick={(e) => e.stopPropagation()}
/>
{images.length > 1 && (
@@ -305,7 +315,7 @@ export default function PostCard({ post, currentUser, onUpdate }) {
{images.length > 1 && (
-
+
e.stopPropagation()}>
{images.map((_, index) => (
+ e.stopPropagation()}
+ onTouchStart={(e) => e.stopPropagation()}
+ onClick={handleOverlayClick}
+ >
e.stopPropagation()}>