examples/reminders/index.js
function handlePositionWhenShowingAllCategories(x, y, self, items, scroller) {
  var order = Data.categoryIds.indexOf(self.props.categoryId);
  var multiplier = Math.max(1, 1 - ( y / friction)); // stretch effect

  var pos = Math.max(0, order * multiplier * itemSizeDuringListMode - y);
  return {
    height: scroller.rect.height - spaceAtBottom + 'px',
    zIndex: 2 + order,
    y: pos,
  };
}
function handlePositionWhenShowingAllCategories(x, y, self, items, scroller) {
  var order = Data.categoryIds.indexOf(self.props.categoryId);
  var multiplier = Math.max(1, 1 - ( y / friction)); // stretch effect

  var pos = Math.max(0, order * multiplier * itemSizeDuringListMode - y);
  return {
    height: scroller.rect.height - spaceAtBottom + 'px',
    zIndex: 2 + order,
    y: pos,
  };
}
function handlePositionWhenShowingAllCategories ( x , y , self , items , scroller ) { var order = Data . categoryIds . indexOf ( self . props . categoryId ) ; var multiplier = Math . max ( 1 , 1 - ( y / friction ) ) ; // stretch effect var pos = Math . max ( 0 , order * multiplier * itemSizeDuringListMode - y ) ; return { height : scroller . rect . height - spaceAtBottom + 'px' , zIndex : 2 + order , y : pos , } ; }
ms
ms