naver / egjs

Javascript components group that brings easiest and fastest way to build a web application in your way.
https://naver.github.io/egjs
Other
935 stars 80 forks source link

When viewport is changed, infinteGrid is not append automatically #450

Closed sculove closed 7 years ago

sculove commented 7 years ago

Description

When viewport is changed, infiniteGird change viewport size in order to fit wrapper height of contents. Therefore, when scroll event is fired, prevScroll position is larger than current scroll position. infiniteGrid fire 'prepend' event. it's bug!!!

Steps to check or reproduce

  1. scroll down and down (appended)
  2. scroll down and down (appended)
  3. scroll down and down (appended)
  4. change resize or rotate!!!
  5. you can see stopped contents of infiniteGrid.