jquery-endless-scroll icon indicating copy to clipboard operation
jquery-endless-scroll copied to clipboard

bug when working woth zoom

Open digreamon opened this issue 10 years ago • 0 comments

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

digreamon avatar Feb 17 '15 16:02 digreamon