Binding element state to scroll position of another element not working

Hi all

I’m trying to bind the state of a text element to the y scroll position of an HTML element. The formula is working correctly in the editor but when I go to preview mode, the state isn’t changing. See Loom below.Any ideas please? Thanks!

I believe that’s because the width of the content is changing. So, the values don’t match anymore (you can check that by binding the y values to a text).
Having fixed values might not be the best solution here.

1 Like

@jptrinh You are correct, thank you. Any other ideas as to how to make this work?

Bumping this one in hopes someone can help me work this out. If not, guess I will be joining the office hours Tuesday! Thanks. :upside_down_face:

I was thinking of having a ‘watcher’ div at the end of the terms. When that watcher y position is in the screen (> 20 for instance), then activate the checkbox. A bit like in the Infinite scroll logic.

@jptrinh solution should do the trick