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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ All notable changes to this project will be documented in this file. Take a look

* Fixed a race condition issue with the `AVTTSEngine`, when pausing utterances.
* Fixed crash with `PublicationSpeechSynthesizer`, when the currently played word cannot be resolved.
* Fixed EPUB tap event sent twice when using a mouse (e.g. on Apple Silicon or with a mouse on an iPad).


## [2.4.0]
Expand Down
12 changes: 11 additions & 1 deletion Sources/Navigator/EPUB/EPUBSpreadView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ class EPUBSpreadView: UIView, Loggable, PageView {
addSubview(webView)
setupWebView()

addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(didTapBackground)))
let gestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(didTapBackground))
gestureRecognizer.delegate = self
addGestureRecognizer(gestureRecognizer)

for script in scripts {
webView.configuration.userContentController.addUserScript(script)
Expand Down Expand Up @@ -514,6 +516,14 @@ extension EPUBSpreadView: WKUIDelegate {
}
}

extension EPUBSpreadView: UIGestureRecognizerDelegate {
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRequireFailureOf otherGestureRecognizer: UIGestureRecognizer) -> Bool {
// Prevents the tap event from being triggered by the fallback tap
// gesture recognizer when it is also recognized by the web view.
true
}
}

private extension EPUBSpreadView {

func updateActivityIndicator() {
Expand Down
1 change: 1 addition & 0 deletions TestApp/Integrations/Carthage/project+lcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ targets:
settings:
LIBRARY_SEARCH_PATHS: $(PROJECT_DIR)/Carthage
OTHER_SWIFT_FLAGS: -DLCP
DEVELOPMENT_TEAM: ${RD_DEVELOPMENT_TEAM}

1 change: 1 addition & 0 deletions TestApp/Integrations/Carthage/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ targets:
- package: MBProgressHUD
settings:
LIBRARY_SEARCH_PATHS: $(PROJECT_DIR)/Carthage
DEVELOPMENT_TEAM: ${RD_DEVELOPMENT_TEAM}

1 change: 1 addition & 0 deletions TestApp/Integrations/CocoaPods/project+lcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ targets:
- path: Sources
settings:
OTHER_SWIFT_FLAGS: $(inherited) -DLCP
DEVELOPMENT_TEAM: ${RD_DEVELOPMENT_TEAM}
2 changes: 2 additions & 0 deletions TestApp/Integrations/CocoaPods/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ targets:
deploymentTarget: "14.0"
sources:
- path: Sources
settings:
DEVELOPMENT_TEAM: ${RD_DEVELOPMENT_TEAM}
1 change: 1 addition & 0 deletions TestApp/Integrations/Local/project+lcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ targets:
- package: SwiftSoup
settings:
OTHER_SWIFT_FLAGS: -DLCP
DEVELOPMENT_TEAM: ${RD_DEVELOPMENT_TEAM}

2 changes: 2 additions & 0 deletions TestApp/Integrations/Local/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ targets:
- package: Kingfisher
- package: MBProgressHUD
- package: SwiftSoup
settings:
DEVELOPMENT_TEAM: ${RD_DEVELOPMENT_TEAM}

1 change: 1 addition & 0 deletions TestApp/Integrations/SPM/project+lcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ targets:
- package: SwiftSoup
settings:
OTHER_SWIFT_FLAGS: -DLCP
DEVELOPMENT_TEAM: ${RD_DEVELOPMENT_TEAM}
2 changes: 2 additions & 0 deletions TestApp/Integrations/SPM/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ targets:
- package: GRDB
- package: Kingfisher
- package: MBProgressHUD
settings:
DEVELOPMENT_TEAM: ${RD_DEVELOPMENT_TEAM}

2 changes: 1 addition & 1 deletion TestApp/Sources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
<string>armv7</string>
</array>
<key>UIRequiresFullScreen</key>
<true/>
<false/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
Expand Down
2 changes: 1 addition & 1 deletion TestApp/Sources/Library/LibraryViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class LibraryViewController: UIViewController, Loggable {

override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
super.viewWillTransition(to: size, with: coordinator)
collectionView.collectionViewLayout.invalidateLayout()
collectionView?.collectionViewLayout.invalidateLayout()
}

static let iPadLayoutNumberPerRow:[ScreenOrientation: Int] = [.portrait: 4, .landscape: 5]
Expand Down