Browse Source

Faster animation media control

Signed-off-by: Philippe Weidmann <philippe.weidmann@infomaniak.com>
Philippe Weidmann 4 years ago
parent
commit
bb53b65c27
1 changed files with 2 additions and 2 deletions
  1. 2 2
      iOSClient/Media/NCMedia.swift

+ 2 - 2
iOSClient/Media/NCMedia.swift

@@ -812,7 +812,7 @@ class NCMediaCommandView: UIView {
     func collapseControlButtonView(_ collapse: Bool) {
         if (collapse) {
             self.buttonControlWidthConstraint.constant = 40
-            UIView.animate(withDuration: 0.5) {
+            UIView.animate(withDuration: 0.25) {
                 self.zoomOutButton.isHidden = true
                 self.zoomInButton.isHidden = true
                 self.separatorView.isHidden = true
@@ -821,7 +821,7 @@ class NCMediaCommandView: UIView {
             }
         } else {
             self.buttonControlWidthConstraint.constant = 80
-            UIView.animate(withDuration: 0.5) {
+            UIView.animate(withDuration: 0.25) {
                 self.zoomOutButton.isHidden = false
                 self.zoomInButton.isHidden = false
                 self.separatorView.isHidden = false