mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 22:23:52 +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]];
|
[self addInteraction:[[UIPointerInteraction alloc] initWithDelegate:self]];
|
||||||
|
|
||||||
UIPanGestureRecognizer *mouseWheelRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(mouseWheelMoved:)];
|
UIPanGestureRecognizer *mouseWheelRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(mouseWheelMoved:)];
|
||||||
mouseWheelRecognizer.allowedScrollTypesMask = UIScrollTypeMaskDiscrete;
|
mouseWheelRecognizer.allowedScrollTypesMask = UIScrollTypeMaskAll;
|
||||||
mouseWheelRecognizer.allowedTouchTypes = @[@(UITouchTypeIndirectPointer)];
|
mouseWheelRecognizer.allowedTouchTypes = @[@(UITouchTypeIndirectPointer)];
|
||||||
[self addGestureRecognizer:mouseWheelRecognizer];
|
[self addGestureRecognizer:mouseWheelRecognizer];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user