code: async function wheelTimedOut(element) {
  
    // Snap to the closest item.
    const swipeFraction = element.state.swipeFraction;
    let gesture;
    if (swipeFraction <= -0.5) {
      gesture = symbols.swipeLeft;
    } else if (swipeFraction >= 0.5) {
      gesture = symbols.swipeRight;
    }
  
    // TODO: Listen for the transition to complete, and then restore
    // dragging to false (or the previous value).
    resetWheelTracking(element);
    element.setState({ swipeFraction: null });
  
    if (gesture && element[gesture]) {
      await element[gesture]();
    }
  }
docs: A sufficiently long period of time has passed since the last wheel event. We snap the selection to the closest item, then reset our state.