twobin/react-lazyload

Overflow check for parent can be inclusive of any of the overflow condition

rajatkb-typito opened this issue · 0 comments

if (overflowRegex.test(overflow) && overflowRegex.test(overflowX) && overflowRegex.test(overflowY)) {

  • When using the overflow:true props it did not pick the correct parent and hence was not giving the desired effect.
  • Since I was restricting the overflow on x axis and scroll on y axis the parent was ignored.
  • We can use or condition to enable detection of any parent that has an overflow