From: luozheng <1732036298@qq.com> Date: Tue, 28 Oct 2025 03:35:13 +0000 (+0800) Subject: 解决表冠旋转方向与slider值相反bug X-Git-Tag: V1.0.9_20251128_194606_LN~157^2~4 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=c521f30fefcd70015bf63f31d4b8d26917ec6285;p=mirrors%2FFD230.git 解决表冠旋转方向与slider值相反bug --- diff --git a/code/sdk/middleware/services/gui/uikit/ui/frameworks/components/ui_slider.cpp b/code/sdk/middleware/services/gui/uikit/ui/frameworks/components/ui_slider.cpp index 47563ed43..e246f1c2b 100644 --- a/code/sdk/middleware/services/gui/uikit/ui/frameworks/components/ui_slider.cpp +++ b/code/sdk/middleware/services/gui/uikit/ui/frameworks/components/ui_slider.cpp @@ -364,7 +364,7 @@ bool UISlider::OnRotateEvent(const RotateEvent& event) { int32_t realRotation = 0; cachedRotation_ += event.GetRotate() * rotateFactor_; - realRotation = static_cast(cachedRotation_); + realRotation = - static_cast(cachedRotation_);//解决表冠旋转方向与slider值相反bug if (realRotation == 0) { return UIView::OnRotateEvent(event); }