From 0e4ad9a4de5b95f58daf1a6c5072c6a57cf223f9 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期一, 30 十二月 2019 10:02:10 +0800
Subject: [PATCH] 2019.12.30

---
 ZigbeeApp/Shared/Phone/Device/Curtain/RollerShadeControl.cs |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Curtain/RollerShadeControl.cs b/ZigbeeApp/Shared/Phone/Device/Curtain/RollerShadeControl.cs
index 1c739ea..f489595 100644
--- a/ZigbeeApp/Shared/Phone/Device/Curtain/RollerShadeControl.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Curtain/RollerShadeControl.cs
@@ -705,10 +705,11 @@
                 curtainRollSeekBar.Progress = (device.CommonDevice as Rollershade).WcdCurrentPositionLiftPercentage;
                 layout.AddChidren(curtainRollSeekBar);
                 curtainRollSeekBar.IsProgressTextShow = false;
-                //curtainRollSeekBar.OnStopTrackingTouchEvent += (sender, e) =>
-                //{
-                //    (device.CommonDevice as Rollershade).WcdGoToTiltValue(curtainRollSeekBar.Progress);
-                //};
+                curtainRollSeekBar.CurtainPaddingTop = Application.GetRealHeight(110);
+                curtainRollSeekBar.OnStopTrackingTouchEvent += (sender, e) =>
+                {
+                    (device.CommonDevice as Rollershade).WcdGoToTiltValue(curtainRollSeekBar.Progress);
+                };
 
                 curtainRollSeekBar.OnStartTrackingTouchEvent += (sender, e) =>
                 {
@@ -727,9 +728,9 @@
                     OnProgressButtonMove(e2);
 
                     //鍒ゆ柇鏄惁300ms灞忚斀
-                    if (curtainRollSeekBar.IsProgressChangeDelay()) return;
+                    //if (curtainRollSeekBar.IsProgressChangeDelay()) return;
 
-                    (device.CommonDevice as Rollershade).WcdGoToTiltValue(curtainRollSeekBar.Progress);
+                    //(device.CommonDevice as Rollershade).WcdGoToTiltValue(curtainRollSeekBar.Progress);
                 };
 
                 InitProgressBtn(layout);

--
Gitblit v1.8.0