Sticky section JS/JQuey solution doesnt work in Mendix

I’m trying to implement a simple sticky section so that when I scroll the page it should stop moving after touching the top screen border. I tried several JS and JQuery solutions, adding them with HTML/JS snippet widget,  but none of them work for some reason. Interesting that I can use JQuery to add a class on click, so the code is being executed with no errors, maybe the onscroll event doesn’t work properly, or the issue is somewhere else. Is there any way to fix it or is there any widget that could help me to make a sticky section like this?
1 answers

Hi Maxim,

See this example:

Maybe the hardest part is to find the right container in your page structure, but it's not very hard with this new “sticky” value for the position.