Double tap on iOS #2015
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#2015
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Hi,
Is it intentional that some things need a two taps on iOS?
eg.
Vikunja Frontend Version
0.20.3
Vikunja API Version
0.20.2
Browser and version
Safari iOS 16.3.1
Can you reproduce the bug on the Vikunja demo site?
Yes
Screenshots
No response
I think it may be a CSS issue, I found this:
https://css-tricks.com/annoying-mobile-double-tap-link-issue/
As a lazy test I stripped out
:hover
from all of the CSS on my instance and it fixed the issue.I'll get vikunja set up locally at some point and come up with a proper fix.
It's not intentional.
Great, I'll submit a fix when I get some time.
Looks like the issue is because the star button is shown on hover.
Was thinking on mobile it should just always be shown.
Let me know if you have a better suggestion.
Thanks
That sounds like it could work. I'd love a PR!
Seems like the way to do it now is to combine the queries:
See https://medium.com/@mezoistvan/finally-a-css-only-solution-to-hover-on-touchscreens-c498af39c31c
Support seems fine these days.
Digging a bit deeper: I'm a bit unsure how the the use tablets (especially iPads) together with stylus aka Apple Pencil changes this.
See also this thread that seems to keep track of these changes:
https://twitter.com/meduzen/status/1051542796954415107
Looks like for iPads with the apple pencil the hover check would be
false
then we would just show the star and overflow menu button, which seems fine to me.Alternatively we could remove the hover entirely and just always show the star and overflow menu button, though I think the current design is nice on desktop.
I have a few devices I can test with (though not an iPad which supports the apple pencil) so I will add some notes of the various devices when I raise the PR.
In some projects I also used this trick:
I assume the device doesn't support touch. So we support hover initially.
We have a general listener for touch events on the body with
capture
,once
andpassive
set astrue
. If that listener is fired we add a class to the body that indicates touch support. We can use that class in links to check for support.I think we should definitely keep that. Better remove it for devices like the ipad when so that it works most of the time and differently for ipads.
I have an ipad with a pencil and could test this. I wouldn't say that's high on the priority list though.