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!
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.
@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.
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