Skip to content

Commit

Permalink
identify element as scrollable when using non standard webkit css
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory, Sam (ELS-OXF) committed Jun 25, 2021
1 parent 8c41865 commit 0350916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down

0 comments on commit 0350916

Please sign in to comment.