swipe-card icon indicating copy to clipboard operation
swipe-card copied to clipboard

hold_action not working on glance card inside swipe card

Open kicker10BOG opened this issue 5 years ago • 10 comments

I was playing around with views today and discovered that the hold_action fails on card (at least glance cards) inside a swipe card.

My assumption is that hold_action must be disabled on swipe cards to allow the swipe action. Is that correct?

It would be nice to be able to use the hold_action if possible.

kicker10BOG avatar Feb 06 '20 18:02 kicker10BOG

So is this a will-not-fix? Closing this without explanation is asking for someone to open the same issue again.

Villhellm avatar Aug 04 '20 17:08 Villhellm

Not sure why this was closed, most likely because it was fixed? Is this still an issue?

Might be closed by accident? 🤷‍♂️

bramkragten avatar Aug 04 '20 17:08 bramkragten

It is still an issue on 4.0.0 as far as I can tell. I noticed it on my picture-elements card (doesn't do anything on hold, but tap works fine), but if I try to use a glance card, as per the original issue, the behavior is erratic. Sometimes it will perform the hold_action on tap, sometimes it will perform the tap_action on hold.

Villhellm avatar Aug 04 '20 17:08 Villhellm

Double tap also seems to work fine, for what it's worth. So it's just hold_action that's having issues

Villhellm avatar Aug 04 '20 18:08 Villhellm

Issue still present with HA v0.117.2 and Swipe Card v4.0.0. Tap/double tap function fine, hold registers as a tap.

jazzyisj avatar Nov 03 '20 04:11 jazzyisj

I have a similar issue. I have a swipe-card with two picture-elements. Inside the picture-elements, i have 4 button-card and i can't hold_action the button-card. It works fine on fullykiosk, chrome android and home assistant app, but actually no on chrome desktop.

KaoruKanon avatar Nov 15 '20 17:11 KaoruKanon

This has been like this since the beginning and is only on desktop and is with all cards I believe (I tested this with custom button card myself). Android and iOS work fine. I accidentally found a workaround for this myself:

https://community.home-assistant.io/t/a-different-take-on-designing-a-lovelace-ui/162594/700?u=asnnetworks

ASNNetworks avatar Nov 19 '20 09:11 ASNNetworks

i hava a similar problem,and also works fine on fullykiosk,but not work on PC chrome

zzz929625 avatar Jan 08 '21 14:01 zzz929625

The root cause of this issue is the same of https://github.com/bramkragten/swipe-card/issues/10. You can have a look at the comment https://github.com/bramkragten/swipe-card/issues/10#issuecomment-822094926.

avallini avatar Apr 19 '21 00:04 avallini

please see also https://github.com/bramkragten/swipe-card/issues/35

still open.

Mariusthvdb avatar Jun 16 '21 10:06 Mariusthvdb