Compare commits
No commits in common. "b54d34ebfcf7ec7df2b3e5c7a9789ef24619a59d" and "d873b157ee961510b49cfe75419111001d0557bd" have entirely different histories.
b54d34ebfc
...
d873b157ee
|
@ -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),
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue