Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
can scroll even when a touch is active
Browse files Browse the repository at this point in the history
  • Loading branch information
joshaber committed Jun 24, 2011
1 parent 1aa8727 commit dd09757
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UIKit/Classes/UIApplication.m
Expand Up @@ -413,6 +413,10 @@ - (void)_sendMouseNSEvent:(NSEvent *)theNSEvent fromScreen:(UIScreen *)theScreen

case NSLeftMouseDragged:
[touch _setPhase:UITouchPhaseMoved screenLocation:screenLocation tapCount:touch.tapCount delta:delta timestamp:timestamp];
break;

case NSScrollWheel:
[touch _setPhase:UITouchPhaseScrolled screenLocation:screenLocation tapCount:0 delta:delta timestamp:timestamp];
break;

default:
Expand Down

0 comments on commit dd09757

Please sign in to comment.