Skip to content

Commit

Permalink
Merge pull request #41 from martin1612/master
Browse files Browse the repository at this point in the history
Fix slider pan issue with iOS 13
spromicky authored Feb 11, 2020

Verified

This commit was signed with the committer’s verified signature.
Nytelife26 Tyler J Russell
2 parents c6872cb + 099ae25 commit b293563
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions StepSlider/source/StepSlider/StepSlider.m
Original file line number Diff line number Diff line change
@@ -443,6 +443,16 @@ - (UIImage *)trackCircleImageForState:(UIControlState)state

#pragma mark - Touches

- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
{
if (![gestureRecognizer isKindOfClass:[UIPanGestureRecognizer class]]) {
return NO;
} else {
CGPoint position = [gestureRecognizer locationInView:self];
return !CGRectContainsPoint(self.bounds, position);
}
}

- (BOOL)beginTrackingWithTouch:(UITouch *)touch withEvent:(UIEvent *)event
{
startTouchPosition = [touch locationInView:self];

0 comments on commit b293563

Please sign in to comment.