Format
This commit is contained in:
parent
267a590d04
commit
c7f56d61d7
|
|
@ -295,6 +295,7 @@ export function Timeline() {
|
|||
const clickX = e.clientX - rect.left;
|
||||
const clickedTime = clickX / (50 * zoomLevel);
|
||||
const clampedTime = Math.max(0, Math.min(duration, clickedTime));
|
||||
|
||||
seek(clampedTime);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue