germanysbestkeptsecret / Wookmark-jQuery

A jQuery plugin to create a dynamic, multi-column layout.
MIT License
2.64k stars 759 forks source link

Scroll up jump issue #215

Closed prajoshvm closed 7 years ago

prajoshvm commented 8 years ago

Hi I have some issue with wookmark jquery plugin on Android chrome browser. I am using it for an e-commerce site with auto load products when scroll down. After full products loaded and when we scoll up it jumps to top of page automatically. Can somebody suggest a solution for this ?

Thanks Prajosh

Sebobo commented 8 years ago

Hi @prajoshvm, do you have some example I could check? Or can you show your js code you use?

Regards, Sebastian

prajoshvm commented 8 years ago

Hi pls check http://vps17554.inmotionhosting.com/~panemi5/sofas.html after finish auto load try to scroll up, u can see issue

On Wed, May 11, 2016 at 5:12 PM, Sebastian Helzle notifications@github.com wrote:

Hi @prajoshvm https://github.com/prajoshvm, do you have some example I could check? Or can you show your js code you use?

Regards, Sebastian

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/germanysbestkeptsecret/Wookmark-jQuery/issues/215#issuecomment-218435315

prajoshvm commented 8 years ago

Thanks prajosh

On Wed, May 11, 2016 at 5:18 PM, prajosh vm prajoshvm@gmail.com wrote:

Hi pls check http://vps17554.inmotionhosting.com/~panemi5/sofas.html after finish auto load try to scroll up, u can see issue

On Wed, May 11, 2016 at 5:12 PM, Sebastian Helzle < notifications@github.com> wrote:

Hi @prajoshvm https://github.com/prajoshvm, do you have some example I could check? Or can you show your js code you use?

Regards, Sebastian

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/germanysbestkeptsecret/Wookmark-jQuery/issues/215#issuecomment-218435315

Sebobo commented 8 years ago

Hi @prajoshvm,

you are completely reinitializing wookmark every time you reload more items. This is not good for performance and could explain the behavior.

Take another look at the example-endless-scroll. There the new items are appended and the existing wookmark instance just updates itself.