Skip to content

bug when working woth zoom #46

Description

@digreamon

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 :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions