I really want this fixed in Flarum core so I’m necrobumping. I’m calling on everyone with an iPhone or iPad with a spare 15 minutes or so to paste these one at a time in their custom CSS to see which ones fix double tab on iPhones in landscape mode and iPads.
I thought I had a fix (and it works for me) but already it may have mixed results:
flarum/core2561
In my opinion, for this fix one should avoid trying to use screen width sizes. There’s too many screen sizes. That’s why I’m opting for these modern media query features.
A couple of these work for me. But this needs multiple people to test it with all kinds of devices.
If you don’t have an iPhone or iPad (or other touch device) you can still test. You shouldn’t notice anything. If you don’t notice anything (you still have the discussion list item toggle on desktop), then the test is successful.
If you do have an iPhone or iPad, what you should notice is, even in landscape mode, you no longer have to tap twice to open a discussion. To me, any-hover:none makes the most sense. But maybe one of the pointer options is better.
/* One or more available input mechanism(s)
can hover over elements with ease */
@media (any-hover: hover) {
.DiscussionListItem .Dropdown-toggle.Button {
display: none;
}
}
/* One or more available input mechanism(s) can hover,
but not easily (e.g., many mobile devices emulate
hovering when the user performs a long tap) */
@media (any-hover: on-demand) {
.DiscussionListItem .Dropdown-toggle.Button {
display: none;
}
}
/* One or more available input mechanism(s) cannot
hover (or there are no pointing input mechanisms) */
@media (any-hover: none) {
.DiscussionListItem .Dropdown-toggle.Button {
display: none;
}
}
/* At least one input mechanism of the device
includes a pointing device of limited accuracy. */
@media (any-pointer: coarse) {
.DiscussionListItem .Dropdown-toggle.Button {
display: none;
}
}
/* At least one input mechanism of the device
includes an accurate pointing device. */
@media (any-pointer: fine) {
.DiscussionListItem .Dropdown-toggle.Button {
display: none;
}
}
/* The device does not include any pointing device. */
@media (any-pointer: none) {
.DiscussionListItem .Dropdown-toggle.Button {
display: none;
}
}