mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-15 13:14:10 +00:00
Stories improvements
This commit is contained in:
parent
8ac9121c5e
commit
c1120648db
@ -1709,7 +1709,7 @@ public class CameraScreen: ViewController {
|
|||||||
self.hasAppeared = hasAppeared
|
self.hasAppeared = hasAppeared
|
||||||
transition = transition.withUserData(CameraScreenTransition.finishedAnimateIn)
|
transition = transition.withUserData(CameraScreenTransition.finishedAnimateIn)
|
||||||
|
|
||||||
self.presentCameraTooltip()
|
// self.presentCameraTooltip()
|
||||||
// self.presentDualCameraTooltip()
|
// self.presentDualCameraTooltip()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -653,7 +653,7 @@ private final class TooltipScreenNode: ViewControllerTracingNode {
|
|||||||
transition.updateFrame(node: actionButtonNode, frame: CGRect(origin: CGPoint(x: backgroundFrame.width - actionSize.width - 16.0, y: floor((backgroundHeight - actionSize.height) / 2.0)), size: actionSize))
|
transition.updateFrame(node: actionButtonNode, frame: CGRect(origin: CGPoint(x: backgroundFrame.width - actionSize.width - 16.0, y: floor((backgroundHeight - actionSize.height) / 2.0)), size: actionSize))
|
||||||
}
|
}
|
||||||
|
|
||||||
let animationFrame = CGRect(origin: CGPoint(x: contentInset - animationInset, y: contentVerticalInset - animationInset), size: CGSize(width: animationSize.width + animationInset * 2.0, height: animationSize.height + animationInset * 2.0))
|
let animationFrame = CGRect(origin: CGPoint(x: contentInset - animationInset, y: floorToScreenPixels((backgroundHeight - animationSize.height - animationInset * 2.0) / 2.0)), size: CGSize(width: animationSize.width + animationInset * 2.0, height: animationSize.height + animationInset * 2.0))
|
||||||
transition.updateFrame(node: self.animatedStickerNode, frame: animationFrame)
|
transition.updateFrame(node: self.animatedStickerNode, frame: animationFrame)
|
||||||
self.animatedStickerNode.updateLayout(size: CGSize(width: animationSize.width + animationInset * 2.0, height: animationSize.height + animationInset * 2.0))
|
self.animatedStickerNode.updateLayout(size: CGSize(width: animationSize.width + animationInset * 2.0, height: animationSize.height + animationInset * 2.0))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user