From b9ad3f9f65d471eb193633f45b50f92991a71128 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Mon, 6 May 2019 16:08:08 +0100 Subject: [PATCH] Fixed intersection observer check on iOS --- resources/assets/js/components/page-display.js | 6 +++--- resources/assets/sass/_header.scss | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) 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; }