Skip to content

bug when working woth zoom #46

@digreamon

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

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