mirror of
https://github.com/samsonjs/SwiftyCam.git
synced 2026-04-27 15:07:43 +00:00
Fixed a bug where moving your finger while recording a video would crash the app
This commit is contained in:
parent
7aee7f5f1b
commit
f041dd7af0
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue