jquery-match-height icon indicating copy to clipboard operation
jquery-match-height copied to clipboard

Add [maintainScroll] option.

Open kntmrkm opened this issue 9 years ago • 2 comments

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));
        }

kntmrkm avatar Sep 30 '15 10:09 kntmrkm

ping

kntmrkm avatar Oct 28 '15 15:10 kntmrkm

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?

liabru avatar Nov 14 '15 17:11 liabru