mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
iPad trackpad support improvements
This commit is contained in:
@@ -5,6 +5,21 @@ import ContextUI
|
||||
import Postbox
|
||||
import TelegramCore
|
||||
import SwiftSignalKit
|
||||
|
||||
final class ChatMessageContextLocationContentSource: ContextLocationContentSource {
|
||||
private let controller: ViewController
|
||||
private let location: CGPoint
|
||||
|
||||
init(controller: ViewController, location: CGPoint) {
|
||||
self.controller = controller
|
||||
self.location = location
|
||||
}
|
||||
|
||||
func transitionInfo() -> ContextControllerLocationViewInfo? {
|
||||
return ContextControllerLocationViewInfo(location: self.location, contentAreaInScreenSpace: UIScreen.main.bounds)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
final class ChatMessageContextExtractedContentSource: ContextExtractedContentSource {
|
||||
let keepInPlace: Bool = false
|
||||
|
||||
Reference in New Issue
Block a user