add single tap to dismiss
This commit is contained in:
parent
f162983b70
commit
6b64f75c8d
|
|
@ -307,7 +307,11 @@ public class SKZoomingScrollView: UIScrollView, UIScrollViewDelegate, SKDetectin
|
|||
|
||||
// MARK: - SKDetectingImageViewDelegate
|
||||
func handleImageViewSingleTap(touchPoint: CGPoint) {
|
||||
photoBrowser?.performCloseAnimationWithScrollView(self)
|
||||
if photoBrowser!.enableSingleTapDismiss {
|
||||
photoBrowser?.performCloseAnimationWithScrollView(self)
|
||||
} else {
|
||||
photoBrowser?.toggleControls()
|
||||
}
|
||||
}
|
||||
|
||||
func handleImageViewDoubleTap(touchPoint: CGPoint) {
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ class ViewController: UIViewController, UICollectionViewDataSource, UICollection
|
|||
browser.displayDeleteButton = true
|
||||
browser.statusBarStyle = .LightContent
|
||||
browser.bounceAnimation = true
|
||||
// browser.enableSingleTapDismiss = true
|
||||
|
||||
// Can hide the action button by setting to false
|
||||
browser.displayAction = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue