Skip to content

Commit

Permalink
Delay system gesture responses on the cropping interface to avoid ges…
Browse files Browse the repository at this point in the history
…ture conflicts
  • Loading branch information
longitachi committed Jul 2, 2024
1 parent bc92e72 commit ee0a28a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Edit/ZLClipImageViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ class ZLClipImageViewController: UIViewController {

override var prefersHomeIndicatorAutoHidden: Bool { true }

/// 延缓屏幕上下方通知栏弹出,避免手势冲突
override var preferredScreenEdgesDeferringSystemGestures: UIRectEdge { [.top, .bottom] }

override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
deviceIsiPhone() ? .portrait : .all
}
Expand Down

0 comments on commit ee0a28a

Please sign in to comment.