fix nextPrevious size and position in fullscreen

This commit is contained in:
Kevin B. committed 2026-11-24 19:28:22 -05:00
1 parent bbef65a808
commit d4ef5dbfcc
4 files changed
+15 -6

No files matched your search

@@ -1124,16 +1124,18 @@ export default {
transform: scale(1.1);
}
/* Mobile styles */
@media (width <= 768px) {
@media (width <= 768px), (height <= 500px) {
.nav-button {
width: var(--fab-size-small);
height: var(--fab-size-small);
}
.nav-button i.material-symbols {
font-size: 20px;
font-size: 25px;
}
}
:fullscreen .nav-button {
margin-top: 0;
}
/* Ensure buttons don't interfere with scrollbars */
@@ -250,6 +250,8 @@ export function useSwipeNavigationGestures({
mutations.setNavigationGestureHint({});
}
function resetEdgeGestureImmediate() {
gestures.clearLongPressTimer();
gestures.longPressPending.value = false;
if (gestures.longPressTriggered.value) {
releaseLongPressHold();
}
@@ -476,13 +476,17 @@ export function useTranscodePlayback(options: UseTranscodePlaybackOptions) {
nativeListenerCleanups.push(cleanup);
}
function cancelNativeAttach(): void {
fileGeneration++;
function clearNativeListeners(): void {
for (const cleanup of nativeListenerCleanups.splice(0)) {
cleanup();
}
}
function cancelNativeAttach(): void {
fileGeneration++;
clearNativeListeners();
}
async function attachVideoStreamAndPlay(): Promise<void> {
if (isTornDown() || videoStreamAttached.value || !getRaw()) {
return;
@@ -864,6 +868,7 @@ export function useTranscodePlayback(options: UseTranscodePlaybackOptions) {
}
// switching the source to HLS: a native resume still waiting must not touch the new source
cancelNativeResume?.();
clearNativeListeners();
invalidateOfferRequest();
const startSource = getReq()?.source;
const startPath = getReq()?.path;
+1 -1
View File
@@ -272,7 +272,7 @@ async function loadAndCommit(identity: string, isStale: () => boolean) {
const kind = previewType.value as "audio" | "video";
const current = committed.value;
const reuse = current?.key === identity && current.kind === kind ? current : null;
const subtitleInputs = JSON.stringify((state.req.subtitles ?? []).map((track) => [track?.name, track?.embedded]));
const subtitleInputs = JSON.stringify((state.req.subtitles ?? []).map((track) => [track?.name, track?.embedded, track?.srclang || track?.language]));
const lyricsInputs = kind === "audio" && state.req.metadata?.hasLyrics ? "lyrics" : "";
const reuseSubtitles = reuse?.subtitleInputs === subtitleInputs ? reuse : null;
const reuseLyrics = reuse?.lyricsInputs === lyricsInputs ? reuse : null;