Commit fa84e1bf by Daniel Dahan

updated

parent 5580bc33
...@@ -108,18 +108,19 @@ public class FabButton : UIButton { ...@@ -108,18 +108,19 @@ public class FabButton : UIButton {
layer.shadowRadius = 5 layer.shadowRadius = 5
} }
override public func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) { public override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) {
super.touchesBegan(touches, withEvent: event) super.touchesBegan(touches, withEvent: event)
pulseTouches(touches) pulseTouches(touches)
} }
override public func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent) { public override func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent) {
super.touchesEnded(touches, withEvent: event) super.touchesEnded(touches, withEvent: event)
shrink() shrink()
removePulse() removePulse()
} }
public override func touchesCancelled(touches: Set<NSObject>!, withEvent event: UIEvent!) { public override func touchesCancelled(touches: Set<NSObject>!, withEvent event: UIEvent!) {
super.touchesCancelled(touches, withEvent: event)
shrink() shrink()
removePulse() removePulse()
} }
......
...@@ -77,15 +77,18 @@ public class FlatButton : UIButton { ...@@ -77,15 +77,18 @@ public class FlatButton : UIButton {
} }
public override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) { public override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) {
super.touchesBegan(touches, withEvent: event)
pulseTouches(touches) pulseTouches(touches)
} }
public override func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent) { public override func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent) {
super.touchesEnded(touches, withEvent: event)
shrink() shrink()
removePulse() removePulse()
} }
public override func touchesCancelled(touches: Set<NSObject>!, withEvent event: UIEvent!) { public override func touchesCancelled(touches: Set<NSObject>!, withEvent event: UIEvent!) {
super.touchesCancelled(touches, withEvent: event)
shrink() shrink()
removePulse() removePulse()
} }
......
...@@ -78,15 +78,18 @@ public class RaisedButton : UIButton { ...@@ -78,15 +78,18 @@ public class RaisedButton : UIButton {
} }
public override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) { public override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) {
super.touchesBegan(touches, withEvent: event)
pulseTouches(touches) pulseTouches(touches)
} }
public override func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent) { public override func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent) {
super.touchesEnded(touches, withEvent: event)
shrink() shrink()
removePulse() removePulse()
} }
public override func touchesCancelled(touches: Set<NSObject>!, withEvent event: UIEvent!) { public override func touchesCancelled(touches: Set<NSObject>!, withEvent event: UIEvent!) {
super.touchesCancelled(touches, withEvent: event)
shrink() shrink()
removePulse() removePulse()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment