Black Trigram (흑괘) - Korean Martial Arts Combat Simulator API - v0.7.9
    Preparing search index...

    Function useThrottle

    • Hook to throttle a callback function

      Type Parameters

      • T extends (...args: never[]) => void

      Parameters

      • callback: T

        Function to throttle

      • delay: number

        Minimum delay between executions in milliseconds

      Returns T

      Throttled function

      const handleTouchMove = useThrottle((event: TouchEvent) => {
      // Handle touch move
      }, 16); // ~60fps