for a custom scrollbar script I want to override the default scrolltop property. Now I have the problem, that I need to reach the value first to modify it. I use
Object.defineProperty(
document.documentElement,
"scrollTop",
{
get: function() {
// How to get the scrollTop value here???
}
}
);
to do the job. Has anyone an idea or alternative?
best regards,
Simon