From 9ee927ce77def826a140b4654ef1da733c903f51 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Fri, 26 Jun 2026 22:03:44 +0800 Subject: [PATCH] fix: prevent scroll capture on card rows with pointer-events - Wrap card containers in overflow-x-auto with pointer-events: none - Inner flex div gets pointer-events: auto so cards remain interactive - Main page scrolling works normally when cursor is over card rows --- app/page.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 9c548f8..1a37d70 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -55,7 +55,8 @@ function SkeletonSections() { className='space-y-3' >
-
+
+
{[1, 2, 3, 4].map((j) => (
))}
+
))} @@ -121,7 +123,8 @@ function GameSection({
-
+
+
{games.map((game, idx) => ( ))}
+
) } @@ -228,7 +232,8 @@ function SaleSection({
-
+
+
{games.map((game, idx) => { const discountPct = game.price_initial && game.price_current ? Math.round((1 - game.price_current / game.price_initial) * 100) @@ -324,6 +329,7 @@ function SaleSection({ ) })}
+
{/* Disclaimer */}