mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-04 23:16:10 +00:00
Allow continuous scroll type gestures. Fixes #408
This commit is contained in:
@@ -78,7 +78,7 @@ static const int REFERENCE_HEIGHT = 720;
|
||||
[self addInteraction:[[UIPointerInteraction alloc] initWithDelegate:self]];
|
||||
|
||||
UIPanGestureRecognizer *mouseWheelRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(mouseWheelMoved:)];
|
||||
mouseWheelRecognizer.allowedScrollTypesMask = UIScrollTypeMaskDiscrete;
|
||||
mouseWheelRecognizer.allowedScrollTypesMask = UIScrollTypeMaskAll;
|
||||
mouseWheelRecognizer.allowedTouchTypes = @[@(UITouchTypeIndirectPointer)];
|
||||
[self addGestureRecognizer:mouseWheelRecognizer];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user