We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ffd155 commit fe6d23cCopy full SHA for fe6d23c
1 file changed
src/block/horizontal-scroller/frontend-horizontal-scroller.js
@@ -17,10 +17,12 @@ class StackableHorizontalScroller {
17
// get all links, because we will need to disable them during drag
18
const children = el.querySelectorAll( '.stk-block-link, a' )
19
20
- // Get all images and set draggable to false
+ // Get all images, set draggable to false
21
+ // and loading to eager to make the browser calculate the grid height correctly
22
const images = el.querySelectorAll( 'img' )
23
images.forEach( image => {
24
image.draggable = false
25
+ image.loading = 'eager'
26
} )
27
28
// prevents redirecting to the inner column link
0 commit comments