Skip to content

Commit

Permalink
long press when toggle on fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cem Olcay authored and Cem Olcay committed Dec 16, 2014
1 parent 7e6a16b commit 02aa6cd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions BubbleControl-Swift/BubbleControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -512,18 +512,17 @@ class BubbleControl: UIControl {

func longPressHandler (press: UILongPressGestureRecognizer) {

if toggle {
return
}

switch press.state {
case .Began:
pop()
if toggle {
toggle = !toggle
}

case .Ended:
if bubbleState == .Pop {
cancelPop()
}

default:
return
}
Expand Down

0 comments on commit 02aa6cd

Please sign in to comment.