code: function shouldAnimate () {
      // Don’t animate while dragging
      if (pointerIsDown) return false
  
      const finished = current === target && Math.abs(currentSpeed) < 0.5
      return !finished
    }
docs: Returns whether an animation should run.