mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-05 14:02:48 +00:00
Story editing fixes
This commit is contained in:
parent
e4a1cb33f0
commit
ef4d6c51c2
@ -1278,6 +1278,11 @@ final class MediaEditorScreenComponent: Component {
|
|||||||
muteButtonView.layer.shadowColor = UIColor.black.cgColor
|
muteButtonView.layer.shadowColor = UIColor.black.cgColor
|
||||||
muteButtonView.layer.shadowOpacity = 0.35
|
muteButtonView.layer.shadowOpacity = 0.35
|
||||||
self.addSubview(muteButtonView)
|
self.addSubview(muteButtonView)
|
||||||
|
|
||||||
|
if self.animatingButtons {
|
||||||
|
muteButtonView.layer.animateAlpha(from: 0.0, to: muteButtonView.alpha, duration: 0.1)
|
||||||
|
muteButtonView.layer.animateScale(from: 0.4, to: 1.0, duration: 0.1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
transition.setPosition(view: muteButtonView, position: muteButtonFrame.center)
|
transition.setPosition(view: muteButtonView, position: muteButtonFrame.center)
|
||||||
transition.setBounds(view: muteButtonView, bounds: CGRect(origin: .zero, size: muteButtonFrame.size))
|
transition.setBounds(view: muteButtonView, bounds: CGRect(origin: .zero, size: muteButtonFrame.size))
|
||||||
|
|||||||
@ -345,6 +345,11 @@ final class StoryItemContentComponent: Component {
|
|||||||
if self.currentMessageMedia?.id != messageMedia?.id {
|
if self.currentMessageMedia?.id != messageMedia?.id {
|
||||||
self.currentMessageMedia = messageMedia
|
self.currentMessageMedia = messageMedia
|
||||||
reloadMedia = true
|
reloadMedia = true
|
||||||
|
|
||||||
|
if let videoNode = self.videoNode {
|
||||||
|
self.videoNode = nil
|
||||||
|
videoNode.view.removeFromSuperview()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if reloadMedia, let messageMedia, let peerReference {
|
if reloadMedia, let messageMedia, let peerReference {
|
||||||
|
|||||||
@ -10,7 +10,7 @@ stream
|
|||||||
/DeviceRGB CS
|
/DeviceRGB CS
|
||||||
/DeviceRGB cs
|
/DeviceRGB cs
|
||||||
q
|
q
|
||||||
1.000000 0.000000 -0.000000 1.000000 5.170449 5.169796 cm
|
1.000000 0.000000 -0.000000 1.000000 5.170449 4.169796 cm
|
||||||
1.000000 1.000000 1.000000 scn
|
1.000000 1.000000 1.000000 scn
|
||||||
9.830000 21.659878 m
|
9.830000 21.659878 m
|
||||||
10.288396 21.659878 10.660000 21.288275 10.660000 20.829878 c
|
10.288396 21.659878 10.660000 21.288275 10.660000 20.829878 c
|
||||||
@ -28,15 +28,15 @@ q
|
|||||||
9.000000 21.288275 9.371604 21.659878 9.830000 21.659878 c
|
9.000000 21.288275 9.371604 21.659878 9.830000 21.659878 c
|
||||||
h
|
h
|
||||||
1.660000 5.830000 m
|
1.660000 5.830000 m
|
||||||
1.660000 6.288396 1.288396 6.660000 0.830000 6.660000 c
|
1.660000 6.288397 1.288396 6.660000 0.830000 6.660000 c
|
||||||
0.371604 6.660000 0.000000 6.288396 0.000000 5.830000 c
|
0.371604 6.660000 0.000000 6.288397 0.000000 5.830000 c
|
||||||
0.000000 4.580000 l
|
0.000000 4.580000 l
|
||||||
0.000000 2.050535 2.050535 0.000000 4.579999 0.000000 c
|
0.000000 2.050535 2.050535 0.000000 4.579999 0.000000 c
|
||||||
15.080000 0.000000 l
|
15.080000 0.000000 l
|
||||||
17.609465 0.000000 19.660000 2.050535 19.660000 4.580000 c
|
17.609465 0.000000 19.660000 2.050535 19.660000 4.580000 c
|
||||||
19.660000 5.830000 l
|
19.660000 5.830000 l
|
||||||
19.660000 6.288396 19.288397 6.660000 18.830000 6.660000 c
|
19.660000 6.288397 19.288397 6.660000 18.830000 6.660000 c
|
||||||
18.371603 6.660000 18.000000 6.288396 18.000000 5.830000 c
|
18.371603 6.660000 18.000000 6.288397 18.000000 5.830000 c
|
||||||
18.000000 4.580000 l
|
18.000000 4.580000 l
|
||||||
18.000000 2.967329 16.692673 1.660000 15.080000 1.660000 c
|
18.000000 2.967329 16.692673 1.660000 15.080000 1.660000 c
|
||||||
4.579999 1.660000 l
|
4.579999 1.660000 l
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user