Fixed intersection observer check on iOS
This commit is contained in:
parent
7a8678e5f7
commit
b9ad3f9f65
|
@ -184,9 +184,9 @@ class PageDisplay {
|
||||||
|
|
||||||
setupNavHighlighting() {
|
setupNavHighlighting() {
|
||||||
// Check if support is present for IntersectionObserver
|
// Check if support is present for IntersectionObserver
|
||||||
if (!'IntersectionObserver' in window ||
|
if (!('IntersectionObserver' in window) ||
|
||||||
!'IntersectionObserverEntry' in window ||
|
!('IntersectionObserverEntry' in window) ||
|
||||||
!'intersectionRatio' in window.IntersectionObserverEntry.prototype) {
|
!('intersectionRatio' in window.IntersectionObserverEntry.prototype)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -215,6 +215,7 @@ header .search-box {
|
||||||
.tri-layout-mobile-tab {
|
.tri-layout-mobile-tab {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-bottom: 3px solid #BBB;
|
border-bottom: 3px solid #BBB;
|
||||||
|
cursor: pointer;
|
||||||
&:first-child {
|
&:first-child {
|
||||||
border-right: 1px solid #DDD;
|
border-right: 1px solid #DDD;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue