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

Updated SDLTouchManager to support gesture cancellation #726

Conversation

NicoleYarroch
Copy link
Contributor

@NicoleYarroch NicoleYarroch commented Sep 8, 2017

Fixes #673

This PR is ready for review.

Risk

This PR makes minor API changes.

Testing Plan

Test cases were added to the SDLTouchManagerSpec class to test canceling tap, pan, and pinch gestures.

Summary

Adds support for detecting a SDLTouchType of type CANCEL. The SDLTouchManager handles parsing the SDLOnTouchType notification from Core and issues a cancel delegate callback for pinch and pan gestures. If a single or double tap gesture is canceled, the tap is simply canceled.

Changelog

Enhancements
  • Added support for detecting a SDLTouchType of type CANCEL in the SDLTouchManager class.
  • Added two new optional methods to the SDLTouchManagerDelegate:
    • touchManager:manager pinchCanceledAtCenterPoint:point
    • touchManager:manager panningCanceledAtPoint:point.
Bug Fixes
  • Added SDLRectangle.h to both of the .podspec files.

CLA

Signed-off-by: NicoleYarroch <nicole@livio.io>
Signed-off-by: NicoleYarroch <nicole@livio.io>
- Added test cases for onTouchEvent CANCEL

Signed-off-by: NicoleYarroch <nicole@livio.io>
- Test cases written for single tap, double tap, and pan gesture cancellation

Signed-off-by: NicoleYarroch <nicole@livio.io>
- got rid of unnecessary repeated code

Signed-off-by: NicoleYarroch <nicole@livio.io>
Signed-off-by: NicoleYarroch <nicole@livio.io>
Signed-off-by: NicoleYarroch <nicole@livio.io>
@NicoleYarroch NicoleYarroch self-assigned this Sep 8, 2017
@NicoleYarroch NicoleYarroch added this to the 5.0.0 milestone Sep 8, 2017
@NicoleYarroch NicoleYarroch changed the title WIP: Updated SDLTouchManager to support gesture cancellation Updated SDLTouchManager to support gesture cancellation Sep 8, 2017
@NicoleYarroch NicoleYarroch deleted the feature/touch_manager_gesture_cancellation_673 branch September 8, 2017 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant