Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events & Scroll conflict revisited #12

Merged
merged 2 commits into from Oct 15, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
}
}