본문으로 건너뛰기

3.4.0

· 약 1분

Features

  • Added renderOnlyVisible option, which can dramatically increase performance when there're many panels.
  • Added isEqualSize and isConstantSize option.
    • isEqualSize(boolean | string[]) option can skip panel size recalculation, which can increase performance when adding a panel or resize().
    • isConstantSize(boolean) option will assume that panel's size won't change after resize. It can increase the performance of resize().
    • See FlickingOptions for more info.
  • Added useOffset option. This will use offsetWidth instead of getBoundingClientRect, so it can calculate panel's original width when CSS transform is applied to panel.
    • ⚠️ Using useOffset when the panel's size is not integer can lead to 1px white space between panels.
  • Added fill() method for needPanel event, which makes user to add panel easily without considering event direction.