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 #98 from readium/develop
Browse files Browse the repository at this point in the history
1.2.6
  • Loading branch information
aferditamuriqi authored Jan 13, 2020
2 parents 2585be7 + ccf072b commit bef87ae
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @aferditamuriqi
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "readium/r2-shared-swift" == 1.4.2
github "readium/r2-shared-swift" == 1.4.3
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "readium/r2-shared-swift" "1.4.2"
github "readium/r2-shared-swift" "1.4.3"
4 changes: 2 additions & 2 deletions R2Navigator.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|

s.name = "R2Navigator"
s.version = "1.2.5"
s.version = "1.2.6"
s.license = "BSD 3-Clause License"
s.summary = "R2 Navigator"
s.homepage = "http://readium.github.io"
s.author = { "Aferdita Muriqi" => "[email protected]" }
s.source = { :git => "https://github.com/readium/r2-navigator-swift.git", :tag => "1.2.5" }
s.source = { :git => "https://github.com/readium/r2-navigator-swift.git", :tag => "1.2.6" }
s.exclude_files = ["**/Info*.plist"]
s.requires_arc = true
s.resources = ['r2-navigator-swift/Resources/**', 'r2-navigator-swift/EPUB/Resources/**']
Expand Down
2 changes: 1 addition & 1 deletion r2-navigator-swift/EPUB/EPUBNavigatorViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ open class EPUBNavigatorViewController: UIViewController, VisualNavigator, Logga

// Gets the current locator from the positionList, and fill its missing data.
let progression = spreadView.progression(in: href)
let positionIndex = Int(progression * Double(positionList.count - 1))
let positionIndex = Int(ceil(progression * Double(positionList.count - 1)))
var locator = positionList[positionIndex]
locator.title = tableOfContentsTitleByHref[href]
locator.locations.progression = progression
Expand Down

0 comments on commit bef87ae

Please sign in to comment.