瀏覽代碼

Faster animation media control

Signed-off-by: Philippe Weidmann <philippe.weidmann@infomaniak.com>
Philippe Weidmann 5 年之前
父節點
當前提交
bb53b65c27
共有 1 個文件被更改,包括 2 次插入2 次删除
  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