mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 16:54:12 +00:00
Make vibrant button highlight more quickly
This commit is contained in:
1 parent
bac205ef84
commit
c771bd651c
1 file changed
+15
@@ -30,4 +30,19 @@ class VibrantButton: UIButton {
|
||||
}
|
||||
}
|
||||
|
||||
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
|
||||
isHighlighted = true
|
||||
super.touchesBegan(touches, with: event)
|
||||
}
|
||||
|
||||
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
|
||||
isHighlighted = false
|
||||
super.touchesEnded(touches, with: event)
|
||||
}
|
||||
|
||||
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
|
||||
isHighlighted = false
|
||||
super.touchesCancelled(touches, with: event)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user