Skip to content
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

Conversation

Lievesley
Copy link

@Lievesley Lievesley commented Feb 28, 2018

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

@Lievesley
Copy link
Author

This PR is ready for review

@Lievesley
Copy link
Author

@joeljfischer please review this PR.

@joeljfischer joeljfischer changed the title Bugfix/issue 879 pan gesture blocks single taps Pan gesture blocks single taps Mar 1, 2018
@joeljfischer joeljfischer added this to the 5.2.0 milestone Mar 1, 2018
@joeljfischer joeljfischer added bug A defect in the library ready for review labels Mar 1, 2018
@joeljfischer
Copy link
Contributor

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.

@Lievesley
Copy link
Author

Lievesley commented Mar 5, 2018

@joeljfischer what is the process for approving the SDLC proposal and how long will this take?

Copy link
Contributor

@joeljfischer joeljfischer left a 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

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)
{
Copy link
Contributor

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.

@Lievesley
Copy link
Author

@joeljfischer requested change to opening brace is ready for review.

@joeljfischer joeljfischer merged commit 61f9c17 into smartdevicelink:develop Mar 12, 2018
@joeljfischer joeljfischer mentioned this pull request Mar 16, 2018
2 tasks
@Lievesley Lievesley deleted the bugfix/issue_879_pan_gesture_blocks_single_taps branch March 19, 2018 10:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug A defect in the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants