From c521f30fefcd70015bf63f31d4b8d26917ec6285 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Tue, 28 Oct 2025 11:35:13 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3=E8=A1=A8=E5=86=A0=E6=97=8B?= =?utf8?q?=E8=BD=AC=E6=96=B9=E5=90=91=E4=B8=8Eslider=E5=80=BC=E7=9B=B8?= =?utf8?q?=E5=8F=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../services/gui/uikit/ui/frameworks/components/ui_slider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.17.1