提交 f2a4a2df 编写于 作者: O openharmony_ci 提交者: Gitee

!120 【轻量级 PR】:旋转表冠方向修改

Merge pull request !120 from YueBiang/N/A
......@@ -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_;
......
......@@ -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() {};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册