Skip to content

NOW MANAGED ON CODEBERG

Fixed intersection observer check on iOS

Dan Brownb9ad3f9f65d4
diff --git a/resources/assets/js/components/page-display.js b/resources/assets/js/components/page-display.js
index 1aeeaf248..e87966d7d 100644
--- a/resources/assets/js/components/page-display.js
+++ b/resources/assets/js/components/page-display.js
@@ -184,9 +184,9 @@ class PageDisplay {
setupNavHighlighting() {
// Check if support is present for IntersectionObserver
- if (!'IntersectionObserver' in window ||
- !'IntersectionObserverEntry' in window ||
- !'intersectionRatio' in window.IntersectionObserverEntry.prototype) {
+ if (!('IntersectionObserver' in window) ||
+ !('IntersectionObserverEntry' in window) ||
+ !('intersectionRatio' in window.IntersectionObserverEntry.prototype)) {
return;
}
diff --git a/resources/assets/sass/_header.scss b/resources/assets/sass/_header.scss
index 7fd6d7ae9..c4ca4607a 100644
--- a/resources/assets/sass/_header.scss
+++ b/resources/assets/sass/_header.scss
@@ -215,6 +215,7 @@ header .search-box {
.tri-layout-mobile-tab {
text-align: center;
border-bottom: 3px solid #BBB;
+ cursor: pointer;
&:first-child {
border-right: 1px solid #DDD;
}