Allow continuous scroll type gestures. Fixes #408

This commit is contained in:
Cameron Gutman
2020-04-29 18:00:17 -07:00
parent 2ec6639351
commit b16eaafd2c

View File

@@ -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];
}