Remove debug comments
This commit is contained in:
parent
ba8aa92994
commit
07fcca17fc
@ -90,8 +90,6 @@ fileprivate enum SubNavPanningDirection : Int {
|
|||||||
switch (pan.state) {
|
switch (pan.state) {
|
||||||
|
|
||||||
case .began:
|
case .began:
|
||||||
print("sssss \(#function) began")
|
|
||||||
|
|
||||||
// Begin the transition to the next page.
|
// Begin the transition to the next page.
|
||||||
panning = true
|
panning = true
|
||||||
if velocityX < 0 && pannableFrameRight.contains(locationInView) {
|
if velocityX < 0 && pannableFrameRight.contains(locationInView) {
|
||||||
@ -119,15 +117,11 @@ fileprivate enum SubNavPanningDirection : Int {
|
|||||||
shouldCompleteTransition = percentage > 0.65;
|
shouldCompleteTransition = percentage > 0.65;
|
||||||
update(percentage)
|
update(percentage)
|
||||||
delegate?.update(percentage: percentage)
|
delegate?.update(percentage: percentage)
|
||||||
print("sssss \(#function) changed \(percentage)")
|
|
||||||
|
|
||||||
case .cancelled:
|
case .cancelled:
|
||||||
cancel()
|
cancel()
|
||||||
print("sssss \(#function) cancelled")
|
|
||||||
|
|
||||||
case .ended:
|
case .ended:
|
||||||
print("sssss \(#function) ended")
|
|
||||||
|
|
||||||
if ((percentage < 0) != (velocityX < 0)) && abs(velocityX) > 50 {
|
if ((percentage < 0) != (velocityX < 0)) && abs(velocityX) > 50 {
|
||||||
// If we are moving back toward the previous view we want to cancel. (the speed threshold is for shaky hands)
|
// If we are moving back toward the previous view we want to cancel. (the speed threshold is for shaky hands)
|
||||||
cancel()
|
cancel()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user