-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DlgPrefInterface: Disable tooltips on iOS by default #12689
Conversation
10e29d2
to
9d38990
Compare
@@ -439,7 +440,11 @@ void DlgPrefInterface::slotApply() { | |||
void DlgPrefInterface::loadTooltipPreferenceFromConfig() { | |||
const auto tooltipMode = static_cast<mixxx::TooltipsPreference>( | |||
m_pConfig->getValue(ConfigKey(kControlsGroup, kTooltipsKey), | |||
#ifdef Q_OS_IOS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the OS the appropriated criteria here? Shouldn't it be screen size, or screen size + touch instead? This also applies to RPi etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen size would be debatable IMO, touch seems reasonable, but remember that this is only a default value and setting it depending on whether there's a mouse currently connected doesn't make much sense IMO (or would lead to surprising behavior with missing tooltips once the user connects one).
If we'd want to go this route, we would likely have to dynamically update this option based on screen size/connected input devices etc. Such a mechanism would be a lot more complex to implement than this fix, which is safe to apply given that all iOS devices use a touchscreen as their primary input.
We could implement a more complex system in future PRs, but I'd consider that out of scope for this small UX improvement which is trivial to replace.
I'm wondering, how are tooltips triggered on touch devices? Did you intend to disable tooltips altogether? Line 96 in def8d15
and Lines 168 to 174 in def8d15
and Lines 1132 to 1155 in def8d15
|
I couldn't get tooltips to trigger reliably, usually they would pop up on the last tapped control after I've already tapped something else, but only every now and then (just often enough to become a minor annoyance, because they seem to block touches to the underlying UI).
Ah interesting, I didn't know about those! I think it's reasonable to leave it opt-in for now, that way adventurous users could still enable them manually in the settings (or users wishing to connect a mouse to their iOS device), even if the vast majority likely won't find them useful on iOS. |
Can we move forward with this PR or is there a reason we should hold off on this fix? |
LGTM, I think |
Updated, thanks |
Thank you, looks good! |
These are usually more obtrusive than helpful on touchscreens, especially when covering other controls, therefore this PR disables them, by default, on iOS.