nicufarmache / lovelace-big-slider-card

A card with a big slider for light entities in Home Assistant
MIT License
66 stars 11 forks source link

Long press popup dissapears on button release. #51

Open bl0ms opened 7 months ago

bl0ms commented 7 months ago

Checklist:

Release with the issue: 1.1.4 (and all previous)

Last working release (if known): N/A

Browser and Operating System: Windows / Firefox latest (and all previous)

Description of problem: When I long press the card (hold_action) it shows the default 'more-info', but when i release the mouse button it closes the popup window again if the mouse cursor is not hoovering over the popup which is often the case in a desktop situation.

Javascript errors shown in the web inspector (if applicable): N/A

Additional information: I've tried it on Windows / Chrome, this browser does not show this particular behavior. I've made a default HA button with long press, it also does not show this behavior. I did notice that the button only showed the long press action on button release where as the big-slider-card shows it on a delayed time while the button is still press down.