Fixed a bug where moving your finger while recording a video would crash the app

This commit is contained in:
Peter Marathas 2017-07-07 12:25:02 -04:00
parent 7aee7f5f1b
commit f041dd7af0

View file

@ -86,7 +86,7 @@ open class SwiftyCamButton: UIButton {
case .began: case .began:
delegate?.buttonDidBeginLongPress() delegate?.buttonDidBeginLongPress()
startTimer() startTimer()
case .cancelled, .ended, .changed, .failed: case .cancelled, .ended, .failed:
invalidateTimer() invalidateTimer()
delegate?.buttonDidEndLongPress() delegate?.buttonDidEndLongPress()
default: default: