Skip to content

Commit

Permalink
Merge pull request shipshapecode#229 from roadhump/overlay
Browse files Browse the repository at this point in the history
Add overlay value to overflow to detect scroll parent
  • Loading branch information
TrevorBurnham authored Dec 12, 2016
2 parents 3d7119e + 9ab9763 commit 1fea672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 1fea672

Please sign in to comment.