mirror of
https://github.com/ente-io/ente.git
synced 2025-04-29 19:15:33 +00:00
Reducing threshold
This commit is contained in:
parent
6b8800f151
commit
9ce9fa2dbf
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user