mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-26 14:00:00 +00:00
Allow continuous scroll type gestures. Fixes #408
This commit is contained in:
1 parent
2ec6639351
commit
b16eaafd2c
1 file changed
+1
-1
@@ -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