tagliatelle

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b3dfe42ef1a252e0e633d91fa9712c957bdc1079
parent a842db56bf29283afc0d0a4c2026ec1d09d53577
Author: breadcat <breadcat@users.noreply.github.com>
Date:   Fri, 17 Jul 2026 15:15:11 +0100

Scroll to video player when timestamps are clicked

Diffstat:
Mstatic/timestamps.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/static/timestamps.js b/static/timestamps.js @@ -36,6 +36,7 @@ function makeTimestampsClickable(containerId, videoId, imageId) { if (video) { video.currentTime = time; video.play(); + window.scrollTo({ top: 0, behavior: "smooth" }); } } else if (e.target.classList.contains("rotate")) { e.preventDefault();