Reducing threshold

This commit is contained in:
Manav Rathi 2025-04-25 19:20:01 +05:30
parent 6b8800f151
commit 9ce9fa2dbf
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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