Features
- Added
renderOnlyVisible
option, which can dramatically increase performance when there're many panels. - Added
isEqualSize
andisConstantSize
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.
- isEqualSize(
- Added
useOffset
option. This will useoffsetWidth
instead ofgetBoundingClientRect
, 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.
- ⚠️ Using
- Added
fill()
method forneedPanel
event, which makes user to add panel easily without considering event direction.