j-a-n / lovelace-wallpanel

🖼️ Wall panel mode and photo screensaver for your Home Assistant Dashboards
GNU General Public License v3.0
451 stars 40 forks source link

`stop_screensaver_on_mouse_click` only works when clicking on image #281

Closed baffles closed 1 week ago

baffles commented 1 week ago

If you use image_fit: contains, then clicking in the border area around the image does not stop the screensaver; you must click ON the image itself. Perhaps the mouse click event needs to be registered on the container rather than the image itself?

baffles commented 1 week ago

Actually, I just realized this is because of touch_zone_size_next_image / touch_zone_size_previous_image; disabling those fixed the issue.