Skip to content

Commit

Permalink
remove body.scrollTop
Browse files Browse the repository at this point in the history
  • Loading branch information
mawinter69 committed Jul 22, 2024
1 parent 9d88f40 commit 666d74b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions war/src/main/webapp/scripts/hudson-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -2242,10 +2242,7 @@ function getStyle(e, a) {
*/
// eslint-disable-next-line no-unused-vars
function ensureVisible(e) {
const scrollTop = Math.max(
document.documentElement.scrollTop,
document.body.scrollTop,
);
const scrollTop = document.documentElement.scrollTop;
let Y = scrollTop;
let H = window.innerHeight;
let c = 0;
Expand Down

0 comments on commit 666d74b

Please sign in to comment.