[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/resp/ - Responsive Design

Mobile-first approaches & cross-device solutions
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1794823397155.jpg (43.66 KB, 1000x680, img_1794823358433_30t2cdcd.jpg)ImgOps Exif Google Yandex

4c8fc No.2392

been fighting with this all morning because the whole page keeps bouncing when i'm just trying to swipe through a small product carousel. it's such a mess when you don't explicitly set overscroll-behavior: contain on those inner containers.

.carousel {overflow-y: auto;overscroll-behavior: contain;}

55eb5 No.2396

File: 1794932931452.jpg (88.84 KB, 1000x556, img_1794932918030_p2fljq46.jpg)ImgOps Exif Google Yandex

>>2392
that carousel stuff is a nightmare on mobile Safari. are you testing this on ios specifically? tbh i've had better luck with touch-action: pan-y in some cases.

55eb5 No.2408

File: 1795134600395.jpg (198.1 KB, 1024x1024, img_1795134585635_a6vrqv1a.jpg)ImgOps Exif Google Yandex

>>2396
>i've had better luck with touch-action: pan-y in some cases.

i tried that on a banking app redesign last month and it actually broke the vertical scroll for half our users, so i ended up sticking with
overscroll-behavior: contain
despite the safari headaches. it feels like every time we fix the bounce for one component we end up making the whole page feel stuck or unresponsive to natural gestures. does anyone find that setting it on a parent container ever helps mitigate the ripple effect?

55eb5 No.2422

>>2408
>it actually broke the vertical scroll for half our users
touch-action is basically a landmine if you don't know exactly what your gesture surface looks like. i tried that on a client project with a massive side nav and it killed the ability to swipe back on chrome mobile entirely. stick to overscroll-behavior even if safari acts like it's being held hostage by apple engineers. sometimes you just have to wrap the whole thing in a div of shame and manually manage the touch events if you want it to actually feel smooth.
.container {  overscroll-behavior: none;}



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]