From bcd8cf9d167c00483a384d7e83e1e15ba2754fe4 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Fri, 20 Sep 2024 20:46:13 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3=E8=AE=BE=E7=BD=AE=E8=A7=86?= =?utf8?q?=E5=9B=BE=E5=8F=B3=E6=BB=91=E9=9A=BE=E9=80=80=E5=87=BA=E9=97=AE?= =?utf8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/settings/src/SettingView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingView.cpp b/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingView.cpp index 006795faa..9bd7ca5fb 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingView.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-07-12 09:55:29 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-09-20 16:04:46 + * @LastEditTime: 2024-09-20 20:42:55 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingView.cpp */ @@ -90,6 +90,7 @@ namespace OHOS scrollView->SetHorizontalScrollState(false); scrollView->SetTouchable(true); scrollView->SetThrowDrag(true); + scrollView->SetOnDragListener(presenter_); /* -------------------------------------------------------------------------- */ title = new UILabelExt(); if (title == nullptr) @@ -134,7 +135,6 @@ namespace OHOS FocusManager::GetInstance()->RequestFocus(contentList); FocusManager::GetInstance()->RequestFocusByDirection(FOCUS_DIRECTION_UP); contentList->SetRotateFactor(1.0); - contentList->SetOnDragListener(presenter_); /* ----------------------------------- Add ---------------------------------- */ scrollView->Add(title); scrollView->Add(contentList); -- 2.17.1