Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add [maintainScroll] option. #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kntmrkm
Copy link

@kntmrkm kntmrkm commented Sep 30, 2015

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
Copy link
Author

kntmrkm commented Oct 28, 2015

ping

@liabru
Copy link
Owner

liabru commented Nov 14, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants