Open grma1 opened 9 years ago
As the callback functionality was removed in v2 branch I've added it back as it could be handy from time to time.
I've also added an option to use requestAnimationFrame instead of setTimeout to avoid unnecessary reflows.
The filter loop was also optimized a bit to avoid reflows due to .scrollTop() and .offset() calls.
As the callback functionality was removed in v2 branch I've added it back as it could be handy from time to time.
I've also added an option to use requestAnimationFrame instead of setTimeout to avoid unnecessary reflows.
The filter loop was also optimized a bit to avoid reflows due to .scrollTop() and .offset() calls.