mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
[WIP] Entity input panel
This commit is contained in:
@@ -154,7 +154,7 @@ public final class Button: Component {
|
||||
|
||||
self.holdActionTimer?.invalidate()
|
||||
if #available(iOS 10.0, *) {
|
||||
let holdActionTimer = Timer(timeInterval: 1.0, repeats: false, block: { [weak self] _ in
|
||||
let holdActionTimer = Timer(timeInterval: 0.5, repeats: false, block: { [weak self] _ in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
@@ -173,7 +173,7 @@ public final class Button: Component {
|
||||
private func beginExecuteHoldActionTimer() {
|
||||
self.holdActionTimer?.invalidate()
|
||||
if #available(iOS 10.0, *) {
|
||||
let holdActionTimer = Timer(timeInterval: 0.2, repeats: true, block: { [weak self] _ in
|
||||
let holdActionTimer = Timer(timeInterval: 0.1, repeats: true, block: { [weak self] _ in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user