DHX SpreadSheet: detect the end of vertical scroll


How can I detect whether the vertical scroll position is at the end of scroll in DHX SpreadSheet? if there is any best way or function, please let me know.

You may use:

let element= document.querySelector(".dhx_grid-body");
maxScrollState = element.scrollHeight - element.clientHeight;

to get the max position of the scroll, and then you can compare it to the


to know if the scroll position is at the end