Various Fixes

This commit is contained in:
Ilya Laktyushin
2021-08-30 02:17:52 +03:00
parent 7f0501d2cb
commit c73cf2386d
3 changed files with 16 additions and 10 deletions

View File

@@ -622,7 +622,7 @@ final class ChatMediaInputNode: ChatInputNode {
return .single(false)
}
self?.lastReorderItemIndex = toIndex
let fromEntry = entries[fromIndex]
guard case let .stickerPack(_, fromPackInfo, _, _, _) = fromEntry else {
return .single(false)
@@ -744,7 +744,7 @@ final class ChatMediaInputNode: ChatInputNode {
}
}
self?.startCollapseTimer(timeout: 1.0)
self?.startCollapseTimer(timeout: 2.0)
})
}
@@ -1275,7 +1275,7 @@ final class ChatMediaInputNode: ChatInputNode {
strongSelf.panelFocusScrollToIndex = nil
strongSelf.panelFocusInitialPosition = nil
}
strongSelf.startCollapseTimer(timeout: decelerated ? 0.5 : 2.0)
strongSelf.startCollapseTimer(timeout: decelerated ? 0.5 : 2.5)
strongSelf.scrollingStickerPacksListPromise.set(false)
}
@@ -1315,7 +1315,7 @@ final class ChatMediaInputNode: ChatInputNode {
strongSelf.panelFocusScrollToIndex = nil
strongSelf.panelFocusInitialPosition = nil
}
strongSelf.startCollapseTimer(timeout: decelerated ? 0.5 : 2.0)
strongSelf.startCollapseTimer(timeout: decelerated ? 0.5 : 2.5)
}
}
}