Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions mreader/ReaderPrefetchPolicy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ nonisolated enum ReaderPrefetchPolicy {
static let cacheForwardCount = 4
static let cacheBackwardCount = 1

/// Continuous scrolling updates the visible page much more frequently than paged modes.
/// Keep a short leading-edge debounce so rapid page changes coalesce, but do not delay
/// neighbour decode long enough for the user to reach the next strip first.
static let continuousDecodedImagePreloadDelay: TimeInterval = 0.18
static let pagedDecodedImagePreloadDelay: TimeInterval = 0.15

static func pageIndices(
currentPageIndex: Int,
pageCount: Int,
Expand Down
Loading
Loading