Skip to content

Commit

Permalink
Merge pull request #12 from kaandedeoglu/master
Browse files Browse the repository at this point in the history
Events & Scroll conflict revisited
  • Loading branch information
schickling committed Oct 15, 2015
2 parents 928d4a3 + 40f874b commit 4c03f87
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ActiveLabel/ActiveLabel.swift
Expand Up @@ -193,7 +193,6 @@ public class ActiveLabel: UILabel {

let touchRecognizer = UILongPressGestureRecognizer(target: self, action: "onTouch:")
touchRecognizer.minimumPressDuration = 0.00001
touchRecognizer.cancelsTouchesInView = false
touchRecognizer.delegate = self
addGestureRecognizer(touchRecognizer)

Expand Down Expand Up @@ -341,4 +340,11 @@ extension ActiveLabel: UIGestureRecognizerDelegate {
return true
}

}
public func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldRequireFailureOfGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}

public func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldBeRequiredToFailByGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}
}

0 comments on commit 4c03f87

Please sign in to comment.