From 9ce9fa2dbf76bb3476c6736a2c3c7842555cc979 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 25 Apr 2025 19:20:01 +0530 Subject: [PATCH] Reducing threshold --- web/packages/gallery/components/viewer/photoswipe.ts | 4 ++-- web/packages/gallery/services/convert.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts index 5c9cd4bd35..69468e8484 100644 --- a/web/packages/gallery/components/viewer/photoswipe.ts +++ b/web/packages/gallery/components/viewer/photoswipe.ts @@ -1103,10 +1103,10 @@ export class FileViewerPhotoSwipe { * navigation stops. * * So as a special case, we keep using arrow keys for navigation for the - * first 1s when the user lands on a slide. + * first 700 milliseconds when the user lands on a slide. */ const isUserLikelyNavigatingBetweenSlides = () => - Date.now() - lastSlideChangeEpochMilli < 1000; /* ms */ + Date.now() - lastSlideChangeEpochMilli < 700; /* ms */ const handleSeekBackOrPreviousSlide = () => { const video = videoVideoEl; diff --git a/web/packages/gallery/services/convert.ts b/web/packages/gallery/services/convert.ts index b75fd09b6a..440afb0822 100644 --- a/web/packages/gallery/services/convert.ts +++ b/web/packages/gallery/services/convert.ts @@ -1,12 +1,12 @@ import { isDesktop } from "ente-base/app"; import log from "ente-base/log"; import { workerBridge } from "ente-base/worker/worker-bridge"; +import type { EnteFile } from "ente-media/file"; import { FileType } from "ente-media/file-type"; import { isHEICExtension, needsJPEGConversion } from "ente-media/formats"; import { heicToJPEG } from "ente-media/heic-convert"; import { detectFileTypeInfo } from "../utils/detect-type"; import { convertToMP4 } from "./ffmpeg"; -import type { EnteFile } from "ente-media/file"; /** * Return a new {@link Blob} containing an image's data in a format that the