Closed zzarcon closed 7 years ago
This PR introduces a new property scrollElement, which will let LazyLoad know about which element the user wants to listen for scroll events.
Some benefits of this:
Avoid having to find the closest parentElement which has a valid overflow property, which is an expensive operation.
parentElement
Sometimes the element that the user wants to listen events doesn't have an active scrolling.
This PR introduces a new property scrollElement, which will let LazyLoad know about which element the user wants to listen for scroll events.
Some benefits of this:
Avoid having to find the closest
parentElement
which has a valid overflow property, which is an expensive operation.Sometimes the element that the user wants to listen events doesn't have an active scrolling.