diff --git a/interfaces/kits/components/ui_slider.h b/interfaces/kits/components/ui_slider.h index 21e25711ecebff33a88bbc4208b112a8e97956c7..df2b0ec11081c13f3e148b1faf7d0c494180f1ef 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 41c93f26cd902cc58b578c90c2a1aeb73e8b887f..cd037e9df6a3ba8c64c59d5e50fd06f4318ba0f3 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() {};