mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various fixes
This commit is contained in:
@@ -1370,6 +1370,16 @@ final class ContextControllerNode: ViewControllerTracingNode, ASScrollViewDelega
|
||||
}
|
||||
}
|
||||
|
||||
func animateDismissalIfNeeded() {
|
||||
guard let layout = self.validLayout, layout.metrics.isTablet else {
|
||||
return
|
||||
}
|
||||
if let sourceContainer = self.sourceContainer {
|
||||
sourceContainer.animateOut(result: .dismissWithoutContent, completion: {})
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
func getActionsMinHeight() -> ContextController.ActionsHeight? {
|
||||
if !self.actionsContainerNode.bounds.height.isZero {
|
||||
return ContextController.ActionsHeight(
|
||||
@@ -2789,6 +2799,10 @@ public final class ContextController: ViewController, StandalonePresentableContr
|
||||
}
|
||||
}
|
||||
|
||||
public func animateDismissalIfNeeded() {
|
||||
self.controllerNode.animateDismissalIfNeeded()
|
||||
}
|
||||
|
||||
public func cancelReactionAnimation() {
|
||||
self.controllerNode.cancelReactionAnimation()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user