From 07aa731254f55cfcbf2b635f20305af43c0b92c3 Mon Sep 17 00:00:00 2001 From: horitaku46 Date: Fri, 22 Dec 2017 21:50:14 +0900 Subject: [PATCH] change longpress timing --- Serrata/Sources/SlideLeafCell.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Serrata/Sources/SlideLeafCell.swift b/Serrata/Sources/SlideLeafCell.swift index e2125f2..1ace072 100644 --- a/Serrata/Sources/SlideLeafCell.swift +++ b/Serrata/Sources/SlideLeafCell.swift @@ -132,7 +132,7 @@ open class SlideLeafCell: UICollectionViewCell { @objc private func longPressGesture(_ sender: UILongPressGestureRecognizer) { switch sender.state { - case .ended, .cancelled, .failed: + case .began: delegate?.longPressImageView() default: break