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

bug when working woth zoom #46

Open
digreamon opened this issue Feb 17, 2015 · 0 comments
Open

bug when working woth zoom #46

digreamon opened this issue Feb 17, 2015 · 0 comments

Comments

@digreamon
Copy link

Hello :)
I have discovered that plugin doesn't work when inflowPixels is 0 and the target is in the zoomed-in page.

The problem lies in jQuery's scrollTop function.
It returns float value, which is a bit smaller than the:

innerWrap.height() - $(target).height()

Thus, the quick solution I've came up with is:

 Math.ceil($(target).scrollTop())

lines 221 and 217, in scrollableAreaMargin function.

PS: Thanks for the nice lightweight plugin :)

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

No branches or pull requests

1 participant