From e0f4ae4484d2b305dbee9a437d6ca07fbbe15297 Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Mon, 15 May 2023 14:04:16 +0300 Subject: [PATCH] fix(core): fix for `smoothScroll` check in Support module --- src/shared/get-support.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/shared/get-support.js b/src/shared/get-support.js index f631d4e17..28ab0eec7 100644 --- a/src/shared/get-support.js +++ b/src/shared/get-support.js @@ -7,7 +7,10 @@ function calcSupport() { const document = getDocument(); return { - smoothScroll: document.documentElement && 'scrollBehavior' in document.documentElement.style, + smoothScroll: + document.documentElement && + document.documentElement.style && + 'scrollBehavior' in document.documentElement.style, touch: !!( 'ontouchstart' in window ||