Skip to content

Commit

Permalink
Disable pan gesture recognizers inside charts that were intercepting …
Browse files Browse the repository at this point in the history
…touches.
  • Loading branch information
mhdhejazi committed Mar 12, 2020
1 parent eb15a03 commit 3f8ea30
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Corona/Chart/HistoryChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class HistoryChartView: LineChartView {

rightAxis.enabled = false

// dragEnabled = false
// scaleXEnabled = false
dragEnabled = false
scaleXEnabled = false
scaleYEnabled = false

noDataTextColor = .systemGray
Expand Down
1 change: 1 addition & 0 deletions Corona/Chart/TopCountriesChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class TopCountriesChartView: BarChartView {

rightAxis.enabled = false

dragEnabled = false
scaleXEnabled = false
scaleYEnabled = false

Expand Down
3 changes: 0 additions & 3 deletions Corona/Controller/MapController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,6 @@ extension MapController: FloatingPanelControllerDelegate {

class PanelLayout: FloatingPanelLayout {
public var initialPosition: FloatingPanelPosition {
#if DEBUG
// return .full
#endif
return .half
}

Expand Down
4 changes: 0 additions & 4 deletions Corona/Data/DataManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,6 @@ class DataManager {

extension DataManager {
func download(completion: @escaping (Bool) -> ()) {
#if DEBUG
// return
#endif

JHUWebDataService.instance.fetchReports { (reports, error) in
guard let reports = reports else {
completion(false)
Expand Down

0 comments on commit 3f8ea30

Please sign in to comment.