Skip to content

Commit 0350916

Browse files
author
Gregory, Sam (ELS-OXF)
committed
identify element as scrollable when using non standard webkit css
1 parent 8c41865 commit 0350916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export function getLockPixelOffsets({height, width, lockOffset}) {
241241

242242
function isScrollable(el) {
243243
const computedStyle = window.getComputedStyle(el);
244-
const overflowRegex = /(auto|scroll)/;
244+
const overflowRegex = /(auto|overlay|scroll)/;
245245
const properties = ['overflow', 'overflowX', 'overflowY'];
246246

247247
return properties.find((property) =>

0 commit comments

Comments
 (0)