Skip to content

Commit

Permalink
updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tfineberg4 committed May 22, 2024
1 parent b5bf154 commit edd6a45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/visx-brush/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ export function getPageCoordinates(event: MouseTouchOrPointerEvent) {
};
}

// Taken from https://dev.to/cantem/how-to-write-a-debounce-function-1bdf
// With some modifications
// Tweaked from https://dev.to/cantem/how-to-write-a-debounce-function-1bdf
export function debounce<T extends Function>(func: T, delay: number): (...args: any[]) => void {
let timeoutId: ReturnType<typeof setTimeout>;
return function debouncedFn(this: unknown, ...args: unknown[]) {
Expand Down

0 comments on commit edd6a45

Please sign in to comment.