fix: Don't delay touches ended
This commit is contained in:
parent
60d9d3537d
commit
e8e8a2a4c9
|
@ -148,7 +148,7 @@ extension SidebarViewController {
|
||||||
let sidebarDoubleTapGestureRecognizer = UITapGestureRecognizer()
|
let sidebarDoubleTapGestureRecognizer = UITapGestureRecognizer()
|
||||||
sidebarDoubleTapGestureRecognizer.numberOfTapsRequired = 2
|
sidebarDoubleTapGestureRecognizer.numberOfTapsRequired = 2
|
||||||
sidebarDoubleTapGestureRecognizer.addTarget(self, action: #selector(SidebarViewController.sidebarDoubleTapGestureRecognizerHandler(_:)))
|
sidebarDoubleTapGestureRecognizer.addTarget(self, action: #selector(SidebarViewController.sidebarDoubleTapGestureRecognizerHandler(_:)))
|
||||||
sidebarDoubleTapGestureRecognizer.delaysTouchesBegan = true
|
sidebarDoubleTapGestureRecognizer.delaysTouchesEnded = false
|
||||||
sidebarDoubleTapGestureRecognizer.cancelsTouchesInView = true
|
sidebarDoubleTapGestureRecognizer.cancelsTouchesInView = true
|
||||||
collectionView.addGestureRecognizer(sidebarDoubleTapGestureRecognizer)
|
collectionView.addGestureRecognizer(sidebarDoubleTapGestureRecognizer)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue