11-14-2018, 08:40 AM
Hi Shane,
Add a parameter "event" to your function OnWindowScroll() and use event.target to obtain the element which triggered the event. So you should have:
function OnWindowScroll(event) {
var theObject = event.target;
...
}
Please let me know if it does what you want.
Kind regards
Add a parameter "event" to your function OnWindowScroll() and use event.target to obtain the element which triggered the event. So you should have:
function OnWindowScroll(event) {
var theObject = event.target;
...
}
Please let me know if it does what you want.
Kind regards