-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Recent change regressed touchscreen functionality in history-chart-timeline #18784
Comments
This is true for any history graph, also for numeric entities and also occurs when using the Android or iOS app. Right now it's impossible to check historic values with the tooltip on tablet/phone, since it will instantly open the more-info dialog. |
I don't see the problem here? On desktop, tooltips work on mouse hover as before. Clicking opens More info dialog (new feature). On android, tap and release opens More Info dialog. Yes, this changes the old behavior. ha-more-info-ok.mp4 |
Good question, I think it's not a great user experience. Normal users (like my partner) expect a tooltip to appear when when pressing the graph on a mobile device. The fact that the tooltip flashes shortly before going to the more info dialog feels like a bug. Furthermore long pressing on a mobile device feels weird and doesn't always work as expected. On my device it always starts to select text in the tooltip when long pressing, which obfuscates part of the tooltip. I also can't hold and move over the graph, since my finger covers the tooltip. If we need to have functionality like on pc, the other way around would make more sense: short press shows tooltip and long press shows more info. |
My user experience is this:
Touch-and-hold is not an option, as described by @rubenpeters91 - my finger covers the tooltip. The "more info" dialog provides zero additional info in this context. I propose to either:
|
I was going to create a video to demonstrate but @afflux described the issue much better. On mobile, interaction with any data is broken. This feature should be disabled by default to avoid breaking the rest of the app. This would still allow it to be turned on for a case by case basis for cards (which suggests to have been the intention). When a solution that factors in all platforms is provided, only then, enable by default. |
Wait, is it all about History section (page)? The Click for More Info could be made disabled in History section easily, I think More Info is less useful there as @afflux suggests. Maybe we could close this and one more issue by just disabling it for the History section. Thanks @rubenpeters91 for showing this bug with the text selection on the tooltip, I never witnessed this myself. EDIT: It is easily reproducible in History section but it can be easily fixed by @vangorra how exactly is the Energy dashboard "broken" for you? "the finger covers 20% if the screen" that sounds like you need a bigger device! "area you are trying to "hover"is entirely occluded" - again: try to repeat precisely: 1. you tap where you want as before, but keep the finger at the screen for 1 second. 2. release your finger. 3. Tooltip is visible - celebrate! You actually don't HAVE TO move your finger to avoid Click for More Info! |
I believe when we get the onClick event that opens more-info we can differentiate mouse vs touch by looking at the Maybe when we're on desktop, the click should open more-info, and when we have touchscreen, the touch can show the tooltip, and then if we do a second touch on the tooltip that can open more-info? |
@k3a I think I can see a way to fix this and restore expected behaviour while still allowing access to more info directly from the charts... Core issue: Proposed fix: Just a thought, hope this helps -- and thank you for your contributions to HA. |
@karwosts @i-jk Thanks for giving an additional suggestion but it is not as easy as you probably think. The |
As of #19606, graph touches on mobile no longer activate the more-info window, that's now a mouse feature only. |
Checklist
Describe the issue you are experiencing
Recent change #18036 broke touchscreen experience for history graph.
When using a touch screen device. Clicking on a block in history-chart-timeline flashes a tooltip with details and immediately opens more-info. Prior to this change, no action would occur when clicking a block in the timeline.
Describe the behavior you expected
The new functionality should be turned off until the feature properly accounts for the regression.
On touchscreen (no mouse):
On desktop (with mouse):
Steps to reproduce the issue
What version of Home Assistant Core has the issue?
latest
What was the last working version of Home Assistant Core?
2023.8.x
In which browser are you experiencing the issue with?
Chrome, Firefox
Which operating system are you using to run this browser?
Linux, Android
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: