bramkragten / swipe-card

Card that allows you to swipe throught multiple cards for Home Assistant Lovelace
234 stars 32 forks source link

Interacting with a slider inside a swipe card, also swipes the card. #78

Closed Pabsilon closed 10 months ago

Pabsilon commented 10 months ago

Hello,

When using cards with a slider inside the swipe cards, clicking and moving the slider also swipes the card, which I think in general is undesirable.

In my case, I have a grid card with various swipe cards that contain Tile cards with the brightness feature. Here's how that would end up in yaml:

square: false
type: grid
columns: 1
cards:
  - type: custom:swipe-card
    cards:
      - type: tile
        entity: light.light1
        tap_action:
          action: toggle
        icon_tap_action:
          action: toggle
        features:
          - type: light-brightness
      - type: tile
        entity: light.light2
        tap_action:
          action: toggle
        icon_tap_action:
          action: toggle
        features:
          - type: light-brightness

The light has to be dimmable for this to work properly, but you get the idea.

image

image

amaciuc commented 9 months ago

Hi @Pabsilon,

Is this problem fixed ?

Pabsilon commented 9 months ago

Hello @amaciuc ,

No, it wasn't fixed, but I think I remember taking a closer look at other issued and I found out that it was a duplicate and there was some work on it already.

Thanks!