How to solve the problem that pictures are not loaded when lazyload scrolls left and right?

how to solve the problem that images are not loaded when lazyload scrolls left or right
now the following images can only be loaded when scrolling below. When scrolling left and right (the container does not allow line wrapping after the div, is exceeded), the picture on the right cannot be displayed, and you need to scroll up and down to display it.
how to solve this problem. It should be quite common, but I can"t find a way

Nov.10,2021

1. Listen for scrolling events of the container;
2. Get the current scrolling value in the callback function;
3. Set the critical value to load the images that need to be lazily loaded in turn.

Menu