Skip to content

Commit

Permalink
Mac: Trigger SDL_FINGERUP for all touches.
Browse files Browse the repository at this point in the history
Fixes bug #2348. Thanks to Alex Szpakowski for the patch!
  • Loading branch information
jorgenpt committed Jan 15, 2014
1 parent c0d86b9 commit 8f660a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -699,9 +699,11 @@ - (void)handleTouches:(cocoaTouchType)type withEvent:(NSEvent *)event
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;
Expand Down

0 comments on commit 8f660a4

Please sign in to comment.