Fix #507: multipleTouchEnabled is not set

This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2023-02-17 06:20:49 +07:00
1 parent c0fa045730
commit 78e84807e6
1 file changed
+1
+1
View File
@@ -104,6 +104,7 @@ BOOL slideableHotbar;
self.surfaceView = [[GameSurfaceView alloc] initWithFrame:self.view.frame];
self.surfaceView.layer.contentsScale = screenScale * resolutionScale;
self.surfaceView.layer.magnificationFilter = self.surfaceView.layer.minificationFilter = kCAFilterNearest;
self.surfaceView.multipleTouchEnabled = YES;
self.touchView = [[UIView alloc] initWithFrame:self.view.frame];
self.touchView.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.1];