Permalink
Browse files

Add overlay value to overflow to detect scroll parent

1 parent 3d7119e commit 9ab97633aa866c7c5f91339f25534298d575a0f5 @roadhump roadhump committed Dec 12, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/js/utils.js
View
@@ -55,7 +55,7 @@ function getScrollParents(el) {
}
const {overflow, overflowX, overflowY} = style;
- if (/(auto|scroll)/.test(overflow + overflowY + overflowX)) {
+ if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {
if (position !== 'absolute' || ['relative', 'absolute', 'fixed'].indexOf(style.position) >= 0) {
parents.push(parent)
}

0 comments on commit 9ab9763

Please sign in to comment.