From 406ae45a589815f3a0297dbb964aa838ff3db1f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20P=2E=20Tjern=C3=B8?= Date: Tue, 14 Jan 2014 17:33:24 -0800 Subject: [PATCH] Mac: Trigger SDL_FINGERUP for all touches. Fixes bug #2348. Thanks to Alex Szpakowski for the patch! --- src/video/cocoa/SDL_cocoawindow.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index f025b7c25..0ed653159 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -699,9 +699,11 @@ SetWindowStyle(SDL_Window * window, unsigned int style) touches = [event touchesMatchingPhase:NSTouchPhaseBegan inView:nil]; break; case COCOA_TOUCH_UP: - case COCOA_TOUCH_CANCELLED: touches = [event touchesMatchingPhase:NSTouchPhaseEnded inView:nil]; break; + case COCOA_TOUCH_CANCELLED: + touches = [event touchesMatchingPhase:NSTouchPhaseCancelled inView:nil]; + break; case COCOA_TOUCH_MOVE: touches = [event touchesMatchingPhase:NSTouchPhaseMoved inView:nil]; break;