Compare commits

..

2 Commits

2 changed files with 6 additions and 5 deletions

View File

@ -81,10 +81,10 @@ class GalleryItemViewController: UIViewController {
overlayVC.view.translatesAutoresizingMaskIntoConstraints = false overlayVC.view.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(overlayVC.view) view.addSubview(overlayVC.view)
NSLayoutConstraint.activate([ NSLayoutConstraint.activate([
overlayVC.view.leadingAnchor.constraint(equalTo: content.view.leadingAnchor), overlayVC.view.leadingAnchor.constraint(equalTo: view.leadingAnchor),
overlayVC.view.trailingAnchor.constraint(equalTo: content.view.trailingAnchor), overlayVC.view.trailingAnchor.constraint(equalTo: view.trailingAnchor),
overlayVC.view.topAnchor.constraint(equalTo: content.view.topAnchor), overlayVC.view.topAnchor.constraint(equalTo: view.topAnchor),
overlayVC.view.bottomAnchor.constraint(equalTo: content.view.bottomAnchor), overlayVC.view.bottomAnchor.constraint(equalTo: view.bottomAnchor),
]) ])
} }

View File

@ -216,7 +216,8 @@ class VideoGalleryContentViewController: UIViewController, GalleryContentViewCon
if !visible { if !visible {
hideControlsWorkItem?.cancel() hideControlsWorkItem?.cancel()
} else if dueToUserInteraction { } else if dueToUserInteraction,
player.rate > 0 {
scheduleControlsHide() scheduleControlsHide()
} }
} }