videosphere
    Preparing search index...
    • Picks the keyframe timestamp closest to the dragged position.

      Parameters

      • targetSeconds: number

        Raw handle position in seconds.

      • candidates: number[]

        Nearby keyframe timestamps from the API.

      Returns number

      Closest candidate, or the raw target when none are close enough.