Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Reducing threshold

Manav Rathi9ce9fa2dbf76
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