Repeater Viewport not firing

I have a viewportEnter event on the box in my repeater. In the preview everything functions as it should.

On the published test site, however, the event only fires on the first 5 boxes in the repeater (I add data to the repeater in batches of 5).

Video: www . loom . com/share/6da670a6ee9e4573ad91bfa354472f2e
(weird chopped up link since it won’t let me put links)

How can I fix this?

Hi Aaron.,

Please provide as much usefull information as possible (Code, screenshots,etc)
This way the community can have a better look at what you are trying to do, or what goes wrong.

Kind regards,
Kristof

Hey kristof, everything is in the video link on the main post.

  • Code
  • expected functionality
  • functionality that I’m experiencing.

I’ll add the code as a screenshot as well.

Hi Aaron,

I think you will need to add the code in the repeater.onItemReady.
When new items are entering the function will also be placed on the new items

Kind regards,
Kristof.

Hey Kris,

I already have an onItemReady() for my repeater.

I’ve even tried moving my viewport event to inside the onItemReady() just to see if it made any difference. It sadly did not.

This exact setup has worked on other sites of mine in the past. Hell, it even worked on this site up until a couple of days ago when the event stopped firing. No change in code that I’m aware of.

I don’t want to blame Wix and not my code, but I really feel like it’s Wix.

In the Loom video you can see that only the top 5 boxes fire viewportEnter events. Before a few days ago, all of them fired the event. I’m not sure what’s changed.

Bump: Can a Wix Velo staff member take a look at this possibly?