From 8328e4c2acb341e74bc739e1d7c224939e3e2fec Mon Sep 17 00:00:00 2001 From: YueBiang <8024860+YueBiang@user.noreply.gitee.com> Date: Mon, 26 Apr 2021 19:18:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=8B=E8=BD=AC=E8=A1=A8=E5=86=A0=E6=96=B9?= =?UTF-8?q?=E5=90=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interfaces/kits/components/ui_slider.h | 2 +- interfaces/kits/events/rotate_event.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/kits/components/ui_slider.h b/interfaces/kits/components/ui_slider.h index 21e2571..df2b0ec 100755 --- a/interfaces/kits/components/ui_slider.h +++ b/interfaces/kits/components/ui_slider.h @@ -357,7 +357,7 @@ private: int32_t CalculateCurrentValue(int16_t length, int16_t totalLength); int32_t UpdateCurrentValue(const Point& knobPosition); #if ENABLE_ROTATE_INPUT - static constexpr int8_t DEFAULT_ROTATE_FACTOR = 1; + static constexpr int8_t DEFAULT_ROTATE_FACTOR = -1; int8_t rotateFactor_ = DEFAULT_ROTATE_FACTOR; #endif UISliderEventListener* listener_; diff --git a/interfaces/kits/events/rotate_event.h b/interfaces/kits/events/rotate_event.h index 41c93f2..cd037e9 100755 --- a/interfaces/kits/events/rotate_event.h +++ b/interfaces/kits/events/rotate_event.h @@ -57,7 +57,7 @@ public: * @since 5.0 * @version 3.0 */ - RotateEvent(int16_t rotate) : rotate_(-rotate * ROTATE_SENSITIVITY) {} // Rotation direction + RotateEvent(int16_t rotate) : rotate_(rotate * ROTATE_SENSITIVITY) {} // Rotation direction ~RotateEvent() {}; -- GitLab