Compare commits

..

No commits in common. "b54d34ebfcf7ec7df2b3e5c7a9789ef24619a59d" and "d873b157ee961510b49cfe75419111001d0557bd" have entirely different histories.

2 changed files with 5 additions and 6 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: view.leadingAnchor), overlayVC.view.leadingAnchor.constraint(equalTo: content.view.leadingAnchor),
overlayVC.view.trailingAnchor.constraint(equalTo: view.trailingAnchor), overlayVC.view.trailingAnchor.constraint(equalTo: content.view.trailingAnchor),
overlayVC.view.topAnchor.constraint(equalTo: view.topAnchor), overlayVC.view.topAnchor.constraint(equalTo: content.view.topAnchor),
overlayVC.view.bottomAnchor.constraint(equalTo: view.bottomAnchor), overlayVC.view.bottomAnchor.constraint(equalTo: content.view.bottomAnchor),
]) ])
} }

View File

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