mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-10-07 08:24:11 +00:00
!32258 修复observer监听scrollEvent偶现闪退
Merge pull request !32258 from 徐钦锋/observerHandler
This commit is contained in:
commit
5ede8e613f
@ -57,6 +57,7 @@ void UIObserverHandler::NotifyScrollEventStateChange(const WeakPtr<AceType>& wea
|
||||
auto pattern = AceType::DynamicCast<ScrollablePattern>(ref);
|
||||
CHECK_NULL_VOID(pattern);
|
||||
auto host = pattern->GetHost();
|
||||
CHECK_NULL_VOID(host);
|
||||
std::string id = host->GetInspectorId().value_or("");
|
||||
float offset = pattern->GetTotalOffset();
|
||||
CHECK_NULL_VOID(scrollEventHandleFunc_);
|
||||
|
Loading…
Reference in New Issue
Block a user