aFarkas / lazysizes

High performance and SEO friendly lazy loader for images (responsive and normal), iframes and more, that detects any visibility changes triggered through user interaction, CSS or JavaScript without configuration.
MIT License
17.56k stars 1.73k forks source link

Image scale issue on browser zoom levels (sometimes) #997

Open ChristianOellers opened 6 months ago

ChristianOellers commented 6 months ago

Describe the bug

Desktop


Originally issued here: https://github.com/FriendsOfShopware/FroshLazySizes/issues/28 Maybe related? https://github.com/aFarkas/lazysizes/issues/906


To Reproduce

Steps to reproduce the behavior:

This behaviour seems to be different, depending on how fast the zoom/ viewport change happens; and sometimes it won't appear. Try at least 5-10x.

What is the expected behavior:

What happened instead:

In what environment (browser/device etc.) does this bug happen/not happen:

Keywords help others to find this issue:

zoom, scale, scaling, size, browser

ChristianOellers commented 6 months ago

Quick solution - Concept?

I can imagine a solution, where one can trigger a re-rendering/ consideration via API/ event. In this case, the checks to do so are on our own side, and don't need to go in the library.

Is this maybe already possible?