3.4.0
· One min read
Features
- Added
renderOnlyVisibleoption, which can dramatically increase performance when there're many panels. - Added
isEqualSizeandisConstantSizeoption.- 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.
- isEqualSize(
- Added
useOffsetoption. This will useoffsetWidthinstead ofgetBoundingClientRect, so it can calculate panel's original width when CSS transform is applied to panel.- ⚠️ Using
useOffsetwhen the panel's size is not integer can lead to 1px white space between panels.
- ⚠️ Using
- Added
fill()method forneedPanelevent, which makes user to add panel easily without considering event direction.