switching attribute toggling from aria-hidden to hidden only
This commit is contained in:
parent
781fa55d71
commit
9e44ce614f
|
|
@ -5,9 +5,9 @@ function handleScrollButonDisplay() {
|
||||||
document.body.scrollTop > window.innerHeight / 2 ||
|
document.body.scrollTop > window.innerHeight / 2 ||
|
||||||
document.documentElement.scrollTop > window.innerHeight / 2
|
document.documentElement.scrollTop > window.innerHeight / 2
|
||||||
) {
|
) {
|
||||||
pageScroller.removeAttribute('aria-hidden');
|
pageScroller.removeAttribute('hidden');
|
||||||
} else {
|
} else {
|
||||||
pageScroller.setAttribute('aria-hidden', 'true');
|
pageScroller.setAttribute('hidden', '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function scrollTop() {
|
function scrollTop() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user