mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Message preview and effect improvements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user