diff --git a/apps/marketing/src/components/(marketing)/carousel.tsx b/apps/marketing/src/components/(marketing)/carousel.tsx index 07b089d33..315717453 100644 --- a/apps/marketing/src/components/(marketing)/carousel.tsx +++ b/apps/marketing/src/components/(marketing)/carousel.tsx @@ -108,14 +108,21 @@ export const Carousel = () => { return; } - setSelectedIndex(emblaApi.selectedScrollSnap()); - emblaThumbsApi.scrollTo(emblaApi.selectedScrollSnap()); + const newIndex = emblaApi.selectedScrollSnap(); + + setSelectedIndex(newIndex); + emblaThumbsApi.scrollTo(newIndex); resetProgress(); + const currentVideo = videoRefs.current[newIndex]; + if (currentVideo) { + currentVideo.currentTime = 0; + } + // moduleResolution: bundler breaks this type // eslint-disable-next-line @typescript-eslint/consistent-type-assertions - const autoplay = emblaApi.plugins()?.autoplay as unknown as AutoplayType | undefined; + const autoplay = emblaApi?.plugins()?.autoplay as unknown as AutoplayType | undefined; if (autoplay) { autoplay.reset(); diff --git a/packages/lib/translations/de/marketing.po b/packages/lib/translations/de/marketing.po index d315ffc1e..45e65cd63 100644 --- a/packages/lib/translations/de/marketing.po +++ b/packages/lib/translations/de/marketing.po @@ -614,6 +614,6 @@ msgstr "Ja! Documenso wird unter der GNU AGPL V3 Open-Source-Lizenz angeboten. D msgid "You can self-host Documenso for free or use our ready-to-use hosted version. The hosted version comes with additional support, painless scalability and more. Early adopters will get access to all features we build this year, for no additional cost! Forever! Yes, that includes multiple users per account later. If you want Documenso for your enterprise, we are happy to talk about your needs." msgstr "Sie können Documenso kostenlos selbst hosten oder unsere sofort einsatzbereite gehostete Version nutzen. Die gehostete Version bietet zusätzlichen Support, schmerzfreie Skalierbarkeit und mehr. Frühzeitige Anwender erhalten in diesem Jahr Zugriff auf alle Funktionen, die wir entwickeln, ohne zusätzliche Kosten! Für immer! Ja, das beinhaltet später mehrere Benutzer pro Konto. Wenn Sie Documenso für Ihr Unternehmen möchten, sprechen wir gerne über Ihre Bedürfnisse." -#: apps/marketing/src/components/(marketing)/carousel.tsx:265 +#: apps/marketing/src/components/(marketing)/carousel.tsx:272 msgid "Your browser does not support the video tag." msgstr "Ihr Browser unterstützt das Video-Tag nicht." diff --git a/packages/lib/translations/en/marketing.po b/packages/lib/translations/en/marketing.po index d240f64ba..43a8b31b6 100644 --- a/packages/lib/translations/en/marketing.po +++ b/packages/lib/translations/en/marketing.po @@ -609,6 +609,6 @@ msgstr "Yes! Documenso is offered under the GNU AGPL V3 open source license. Thi msgid "You can self-host Documenso for free or use our ready-to-use hosted version. The hosted version comes with additional support, painless scalability and more. Early adopters will get access to all features we build this year, for no additional cost! Forever! Yes, that includes multiple users per account later. If you want Documenso for your enterprise, we are happy to talk about your needs." msgstr "You can self-host Documenso for free or use our ready-to-use hosted version. The hosted version comes with additional support, painless scalability and more. Early adopters will get access to all features we build this year, for no additional cost! Forever! Yes, that includes multiple users per account later. If you want Documenso for your enterprise, we are happy to talk about your needs." -#: apps/marketing/src/components/(marketing)/carousel.tsx:265 +#: apps/marketing/src/components/(marketing)/carousel.tsx:272 msgid "Your browser does not support the video tag." msgstr "Your browser does not support the video tag." diff --git a/packages/lib/translations/fr/marketing.po b/packages/lib/translations/fr/marketing.po index 044a3945e..19f71f197 100644 --- a/packages/lib/translations/fr/marketing.po +++ b/packages/lib/translations/fr/marketing.po @@ -614,6 +614,6 @@ msgstr "Oui ! Documenso est proposé sous la licence open source GNU AGPL V3. Ce msgid "You can self-host Documenso for free or use our ready-to-use hosted version. The hosted version comes with additional support, painless scalability and more. Early adopters will get access to all features we build this year, for no additional cost! Forever! Yes, that includes multiple users per account later. If you want Documenso for your enterprise, we are happy to talk about your needs." msgstr "Vous pouvez auto-héberger Documenso gratuitement ou utiliser notre version hébergée prête à l'emploi. La version hébergée est accompagnée d'une assistance supplémentaire, d'une montée en charge sans effort et d'autres avantages. Les premiers adoptants auront accès à toutes les fonctionnalités que nous construirons cette année, sans coût supplémentaire ! Pour toujours ! Oui, cela inclut plusieurs utilisateurs par compte à l'avenir. Si vous souhaitez Documenso pour votre entreprise, nous serons heureux de discuter de vos besoins." -#: apps/marketing/src/components/(marketing)/carousel.tsx:265 +#: apps/marketing/src/components/(marketing)/carousel.tsx:272 msgid "Your browser does not support the video tag." msgstr "Votre navigateur ne prend pas en charge la balise vidéo."