react-lazyload
react-lazyload copied to clipboard
Scroll parent, only need overflowX or overflowY
trafficstars
To get scroll parent, we are checking for overflow, overflowX, overflowY to match (scroll|auto).
This leads to some issues:
- For Chrome (I have not checked in the other browser),
node.getComputedStyle()will always return empty string foroverflowattribute So for now,scrollParent(node)always returndocument. - For some reason, we only allow the container to be overflow in one direction and hidden in the other, eg:
overflow-x: hidden;
overflow-y: auto;
This setting will not allow the container to be detected as scrollParent, and this is bad
cc @jasonslyvia Please help!
yo yo, any update on these PRs. Love to see this merged.
@thonglh I believe this is a duplicate PR for #167