From 66a9965c44ecc32a6696abca876ab9d1cd091584 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期五, 28 二月 2020 15:25:13 +0800
Subject: [PATCH] 2020.2.28
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs
index 3af1925..a293155 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs
@@ -49,6 +49,14 @@
/// 杩涘害鍊兼敼鍙�,濡傛灉瑕佽缃垵濮嬭繘搴﹀��,姝ゅ彉閲忚鍦ㄨ缃垵濮嬭繘搴﹀�间箣鍓嶈繘琛岃缃�(绗竴涓弬鏁�0:婊戝姩鐨勬椂鍊�,1:鎵嬫寚寮硅捣鐨勬椂鍊�)
/// </summary>
public Action<int, int> ProgressChangedEvent = null;
+ /// <summary>
+ /// 杩涘害鏉′簨浠剁殑瑙﹀彂鏃堕棿闂撮殧(榛樿娌℃湁闂撮殧)
+ /// </summary>
+ public int EventWaitTime = -1;
+ /// <summary>
+ /// 鍓嶅洖鏃堕棿
+ /// </summary>
+ private DateTime oldTime = DateTime.Now;
#endregion
@@ -92,6 +100,13 @@
this.OnProgressChangedEvent -= this.MyProgressChangedEvent;
return;
}
+ //鏃堕棿闂撮殧
+ if (EventWaitTime != -1)
+ {
+ if ((DateTime.Now - oldTime).TotalMilliseconds < EventWaitTime) { return; }
+ oldTime = DateTime.Now;
+ }
+
this.ProgressChangedEvent(0, value);
}
@@ -107,6 +122,7 @@
this.OnStopTrackingTouchEvent -= this.MyStopTrackingTouchEvent;
return;
}
+ //寮硅捣浜嬩欢涓嶉渶瑕佸垽鏂椂闂�
this.ProgressChangedEvent(1, value);
}
--
Gitblit v1.8.0