Hi,
am working on changing the header color when the user scrolls but the window.scrollY value is always zero, can anyone tell me why the value won't change
I also asked a colleague what the native javascript version is.
var element = document.querySelector(".screen-container");
var scrollTopValue = element.scrollTop;
I don't know what the exact issue is with OutSystems.
But you can use some jQuery to solve this problem.
$(".screen-container").scrollTop this will return the current scroll position.
You can use Jquery the same ways as Javascript, This worked for me.