Skip to content

Commit

Permalink
Fix for zero (0) numberOfTouches bug (Fixed issue #327)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Aug 28, 2015
1 parent c208f32 commit 5bcc37b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Charts/Classes/Charts/BarLineChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ public class BarLineChartViewBase: ChartViewBase, UIGestureRecognizerDelegate

@objc private func panGestureRecognized(recognizer: UIPanGestureRecognizer)
{
if (recognizer.state == UIGestureRecognizerState.Began)
if (recognizer.state == UIGestureRecognizerState.Began && recognizer.numberOfTouches() > 0)
{
stopDeceleration()

Expand Down

0 comments on commit 5bcc37b

Please sign in to comment.