jquery-match-height
jquery-match-height copied to clipboard
Add [maintainScroll] option.
Hi, Thanks for useful plugin.
In my environment.
A image is loaded as lazy. So, I execute matchHeight
each scrollstop
event (which is original).
Then, scroll is deviated arbitrarily.
I found a code which already implemented.
By use that code. Scroll moving is stopped. ( It is good action for me.) So, I want to use this option.
if (matchHeight._maintainScroll) {
$(window).scrollTop((scrollTop / htmlHeight) * $('html').outerHeight(true));
}
ping
Is there a reason why you can't enable it like mentioned in the readme?
$.fn.matchHeight._maintainScroll = true;
Or do you need to specifically enable it per-binding?