When using the JS Fiddle provided, it was discovered that clicking the link in the sidebar scrolls the page to 400px down in Firefox, but this functionality does not work in Chrome.
If I am unable to modify the HTML or CSS, is there a JavaScript solution to resolve this issue?
body {
position: absolute;
left: 0;
right: 20%;
top: 0;
bottom: 0;
overflow: hidden;
overflow-y: scroll;
}
html {
overflow: hidden;
height: 100%;
}
In Chrome, the following code snippet always returns 0 regardless of scrolling distance:
console.log($('body').scrollTop());
Additionally, the following code has no effect in Chrome:
$('body').scrollTop(400);
These methods work as expected in Firefox.