-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
fix: Fix double tap on iOS devices #1858
base: main
Are you sure you want to change the base?
Conversation
@webjib For some reason this does not seem to work for me (testing using Browserstack on iPhone 16 iOS v18). This is my config, simply turn on/off a light. Works fine in any browser I can test on, does not work on iOS using this PR (or before): type: custom:frigate-card
cameras:
- camera_entity: camera.office
live_provider: go2rtc
- camera_entity: camera.kitchen
live_provider: webrtc-card
live:
zoomable: false
actions:
entity: light.office_main_lights
double_tap_action:
action: toggle
controls:
builtin: false
menu:
style: outside Would you mind sharing your config and I'll try that? |
I've tested again, with a fresh fork, it's still working. Here is my full config:
|
@webjib I'm not sure what to do here. I still cannot get this to work using your PR in BrowserStack, but it apparently works for you. That normally might be fine, but the fact neither of us currently understands why this works for you is a little unsettling ;-) Do you have multiple iOS devices you could test this on, just to make sure? |
I agree with you. I can test on another iPhone, on an iPad and on a virtual iOS device through Xcode. By the way, could you tell me why we can’t use the exact same full code than Home Assistant? |
The card supports things HA doesn't, e.g. actions on the start or end of a tap (for controlling a PTZ camera, or microphone, for example). Both HA, and the card, also have different utility functions (e.g. the card has a nice class for timers). They could certainly be made more similar though, but I wouldn't bother unless there's a problem that we can demonstrably say works with one but not the other. As of yet, I have not been able to see how the HA code performs better in this instance (I did try just using the whole HA code block and it didn't seem to perform any differently in my Browserstack test setup). |
Thanks for your detailed answer! I'll try to test on other devices and I will get back to you. |
This should fix the issue where iOS devices were unable to get the double tap action working.
Tested on a real iPhone, iOS 18.3.