Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #143 from readium/fixes/position-size
Browse files Browse the repository at this point in the history
changed position page length to 1024
  • Loading branch information
aferditamuriqi authored Dec 28, 2019
2 parents 2822ddf + 9f56cd0 commit 2049164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2-streamer-swift/Parser/EPUB/EPUBParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ final public class EpubParser: PublicationParser {
?? Int((try? container.dataLength(relativePath: link.href)) ?? 0)

// Arbitrary byte length of a single page in a resource.
let pageLength = 3500
let pageLength = 1024
let pageCount = max(1, Int(ceil((Double(length) / Double(pageLength)))))

let positionList = (1...pageCount).map { position in
Expand Down

0 comments on commit 2049164

Please sign in to comment.