Message preview and effect improvements

This commit is contained in:
Isaac
2024-05-21 00:02:55 +04:00
parent b420532822
commit fe788ed9ea
26 changed files with 568 additions and 276 deletions

View File

@@ -429,6 +429,15 @@ final class EmojiSearchSearchBarComponent: Component {
return super.hitTest(point, with: event)
}
func leftTextPosition() -> CGFloat {
guard let itemLayout = self.itemLayout else {
return 0.0
}
let visibleBounds = self.scrollView.bounds
return (itemLayout.itemStartX - itemLayout.textSpacing) + visibleBounds.minX
}
private func updateScrolling(transition: Transition, fromScrolling: Bool) {
guard let component = self.component, let itemLayout = self.itemLayout else {
return