-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Pan gesture blocks single taps #884
Pan gesture blocks single taps #884
Conversation
This PR is ready for review |
@joeljfischer please review this PR. |
Hi @Lievesley, thanks for the revised PR. Everything looks good from an overview. I just need some advice on if we can merge this as a bug or if we need an SDLC proposal. I'll let you know. |
@joeljfischer what is the process for approving the SDLC proposal and how long will this take? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor stylistic change
SmartDeviceLink/SDLTouchManager.m
Outdated
CGFloat xDelta = fabs(touch.location.x - self.firstTouch.location.x); | ||
CGFloat yDelta = fabs(touch.location.y - self.firstTouch.location.y); | ||
if (xDelta <= self.panDistanceThreshold && yDelta <= self.panDistanceThreshold) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stylistically, this project uses braces on the same line.
@joeljfischer requested change to opening brace is ready for review. |
Fixes #879
This PR is ready for review.
Risk
This PR makes minor API changes.
Testing Plan
I already added the test case: 'when receiving a single tap with small movement'
Summary
Added a pan threshold distance to prevent pan gestures being recognised for small movements.
CLA