I have a dialog object that contains a lot of data for disclosure statements. The user will need to scroll to the bottom of the document, at which point the 'disagree' and 'agree' options will be eligible to click. Does anyone know how to hook...
I have a dialog object that contains a lot of data for disclosure statements. The user will need to scroll to the bottom of the document, at which point the 'disagree' and 'agree' options will be eligible to click. Does anyone know how to hook into the scroll event of the dialog box so that I can calculate when they scroll to the bottom of that dialog?
I got this to work on a regular page when I could hook into the window.onscroll event as follows. This however does not work with a dialog object because I am not scrolling in the window anymore, but rather the dialog object.
window.onscroll = function() {
var totalPageHeight = document.body.scrollHeight;
var scrollPoint = window.scrollY + window.innerHeight;
// check if we hit the bottom of the page
if(scrollPoint >= totalPageHeight){
console.log("at the bottomz");
data.isScrollBottom = true;
}
}
The Knowledge team is excited to announce that all online eLearning content has now been consolidated into the Journey Platform website to provide a more streamlined user experience.