Merge pull request #434 from PangMo5/PangMo5/fix-gestures-lock

This commit is contained in:
Kwangmin Bae 2022-05-16 00:02:03 +09:00 committed by GitHub
commit 4aa0b04cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -314,6 +314,7 @@ class VLCPlayerViewController: UIViewController {
@objc
private func didPinch(_ gestureRecognizer: UIPinchGestureRecognizer) {
guard !isGesturesLocked else { return }
if gestureRecognizer.state == .began || gestureRecognizer.state == .changed {
pinchScale = gestureRecognizer.scale
} else {
@ -329,6 +330,7 @@ class VLCPlayerViewController: UIViewController {
@objc
private func didVerticalPan(_ gestureRecognizer: UIPanGestureRecognizer) {
guard !isGesturesLocked else { return }
switch gestureRecognizer.state {
case .began:
panBeganBrightness = UIScreen.main.brightness
@ -358,6 +360,7 @@ class VLCPlayerViewController: UIViewController {
@objc
private func didHorizontalPan(_ gestureRecognizer: UIPanGestureRecognizer) {
guard !isGesturesLocked else { return }
switch gestureRecognizer.state {
case .began:
exchangeOverlayView(isBringToFrontThanGestureView: false)