From 0350916bf580ac5538c77ed1e33bc20c5f530de7 Mon Sep 17 00:00:00 2001 From: "Gregory, Sam (ELS-OXF)" Date: Fri, 25 Jun 2021 17:45:38 +0100 Subject: [PATCH] identify element as scrollable when using non standard webkit css --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index b62704ea4..c152efbe0 100644 --- a/src/utils.js +++ b/src/utils.js @@ -241,7 +241,7 @@ export function getLockPixelOffsets({height, width, lockOffset}) { function isScrollable(el) { const computedStyle = window.getComputedStyle(el); - const overflowRegex = /(auto|scroll)/; + const overflowRegex = /(auto|overlay|scroll)/; const properties = ['overflow', 'overflowX', 'overflowY']; return properties.find((property) =>