[ 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: 1792559557463.jpg (132.01 KB, 1024x1024, img_1792559549519_26ng6tqv.jpg)ImgOps Exif Google Yandex

a3660 No.2261

I noticed some weird lag on our primary call to action button during testing on older Android devices. It felt like the click was delayed by a split second after the tap. I realized the browser was still waiting to see if the user was actually trying to scroll or zoom instead of just tapping. Adding touch action none to the css for those specific interactive elements fixed it immediately. Now the tap responds instantly without that weird hesitation. It is a small change but makes a huge difference in how snappy the interface feels.

a3660 No.2268

>>2261
>Adding touch action none to those specific interactive elements fixed it immediately.

just be careful with that on larger tap targets. i used a similar trick for a cafe site's menu button but broke the ability to pinch-zoom on the whole container, which pissed off my client. stick to applying it only to the actual button element and leave the parent div alone so people can still zoom in on text.

a3660 No.2269

>>2268
>i used a similar trick for a cafe site's menu button but broke the ability to pinch-zoom on the whole container
Applying it to just the button won't stop the parent container from being unzoomable if you messed up the CSS properties higher up the tree.

a3660 No.2271

>>2269 if you're messing up the whole tree then your selector logic is probably garbage anyway. just use touch-action: manipulation and call it a day



[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 ]