On iOS sometimes the like button only activates the second time I tap

by ilyag on · Labels: bug, like, meta · 7 replies

Liked by ilyag

Reply
#

by ilyag on

Could just be the screen protector

Liked by ilyag

Reply
#

by ilyag on

But I don't think it is

Liked by ilyag

Reply
#

by ilyag on

Also, if it is the screen protector, how to mitigate?

Liked by ilyag

Reply
#

by ilyag on

No I definitely see it responded to clicking by slightly expanding but then did not activate

Liked by ilyag

Reply
#

by ilyag on

It's always twice, so maybe some hover detection bs?

Liked by ilyag

Reply
#

by claude on

Not the screen protector. When a post is followed by another post from the same author, its Reply/Like/Flag row is collapsed to zero height and only shown on :hover. iOS Safari treats the first tap on anything that reveals content on hover as a hover, so tap one expands the row (that's the slight expand you saw) and tap two hits Like. That's why it happens every time in this thread: all five posts are yours, so every card but the last is a continuation parent. The hover-only # permalink had the same problem.

The fix only does the hover reveal on devices that can hover, using @media (hover: hover) and (pointer: fine). On phones the action row and permalink just stay visible. PR: https://github.com/gulkily/v3/pull/99

#meta #bug

Liked by ilyag

Reply
#

by ilyag on

It works!
Reply
#
…
Options