屏蔽scrollview表冠震动
authorluozheng <1732036298@qq.com>
Thu, 8 Jan 2026 07:46:43 +0000 (15:46 +0800)
committerluozheng <1732036298@qq.com>
Thu, 8 Jan 2026 07:46:43 +0000 (15:46 +0800)
code/sdk/middleware/services/gui/uikit/ui/frameworks/components/ui_scroll_view.cpp

index f00e576..681b3d5 100644 (file)
@@ -144,14 +144,14 @@ bool UIScrollView::OnRotateEvent(const RotateEvent& event)
             uint16_t vibrationCnt = rotateLen / vibrationLenThreshold_;
             for (uint16_t i = 0; i < vibrationCnt; i++) {
                 GRAPHIC_LOGI("UIScrollView::OnRotateEvent calls TYPE_ONE vibrator");
-                vibratorFunc(VibratorType::VIBRATOR_TYPE_ONE);
+                // vibratorFunc(VibratorType::VIBRATOR_TYPE_ONE);
             }
             lastVibratorRotateLen_ = totalRotateLen_;
         }
     }
     if (vibratorFunc != nullptr && (!lastIsEdge && isEdge)) {
         GRAPHIC_LOGI("UIScrollView::OnRotateEvent calls TYPE_THREE vibrator");
-        vibratorFunc(VibratorType::VIBRATOR_TYPE_THREE);
+        // vibratorFunc(VibratorType::VIBRATOR_TYPE_THREE);
     }
 #endif
     return UIView::OnRotateEvent(event);