Skip to content

Commit

Permalink
Merge pull request ChartsOrg#4 from robert-doan/feat/price-chart
Browse files Browse the repository at this point in the history
fix(priceChart): Starting a vertical scroll of the factsheet page does not work when the scroll begins on the graph
  • Loading branch information
yxras committed Sep 9, 2021
2 parents 3806979 + e384f8c commit b31aedc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Charts/Charts/BarLineChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ open class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartD
_tapGestureRecognizer = NSUITapGestureRecognizer(target: self, action: #selector(tapGestureRecognized(_:)))
_longPressGestureRecognizer = NSUILongPressGestureRecognizer(target: self, action: #selector(longPressGestureRecognized(_:)))
_longPressGestureRecognizer.minimumPressDuration = 0
_longPressGestureRecognizer.delegate = self
_doubleTapGestureRecognizer = NSUITapGestureRecognizer(target: self, action: #selector(doubleTapGestureRecognized(_:)))
_doubleTapGestureRecognizer.nsuiNumberOfTapsRequired = 2
_panGestureRecognizer = NSUIPanGestureRecognizer(target: self, action: #selector(panGestureRecognized(_:)))
Expand Down Expand Up @@ -964,6 +965,10 @@ open class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartD

open func gestureRecognizer(_ gestureRecognizer: NSUIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: NSUIGestureRecognizer) -> Bool
{
if gestureRecognizer is NSUILongPressGestureRecognizer {
return true
}

#if !os(tvOS)
if ((gestureRecognizer is NSUIPinchGestureRecognizer && otherGestureRecognizer is NSUIPanGestureRecognizer) ||
(gestureRecognizer is NSUIPanGestureRecognizer && otherGestureRecognizer is NSUIPinchGestureRecognizer))
Expand Down

0 comments on commit b31aedc

Please sign in to comment.