Refactor to remove some duplicated functiosn

This commit is contained in:
James Babcock committed 2026-07-26 11:33:16 -07:00
1 parent 797682a386
commit 205d393415
17 files changed
+57 -223

No files matched your search

+1 -3
View File
@@ -20,6 +20,7 @@ import {
GESTURE_DOUBLE_CLICK,
GESTURE_SCROLL,
} from "../ui/gestures";
import { clamp } from "../util/numeric-util";
declare const global: any;
declare const com: any;
@@ -579,6 +580,3 @@ function formatDuration(durationMs: number): string {
return `${seconds}s`;
}
function clamp(value: number, min: number, max: number): number {
return Math.max(min, Math.min(max, value));
}