Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure it also works in scrolling parents
Until this patch the appear plugin did not fire any events in the following scenario: <body> <div> .... <div style="overflow-y: scroll"> ..... <div class="appear-marker"></div> </div> .... </div> </body>
- Loading branch information
@fhackenberger hi!
I reverted this changes. Unfortunately they are not working as expected. Please check this demo page http://morr.github.com/appear.scroll.html and try to scroll overflowed div.
Overflowed elements became "appeared" even when they are not visible. It is not enough just to add additional event handler for overflow=scroll containers, you have to consider this situation in "process" function. Unfortunately it is not very efficient and it is rather complicated check.