From 272da2981d1d94982b6ded8ee0e4dfebad09f220 Mon Sep 17 00:00:00 2001 From: Bi Fuguo <1782765876@qq.com> Date: Mon, 31 Mar 2025 17:46:49 +0800 Subject: [PATCH] Fixed the crash issue when the openharmony web component is adapted. (#36229) Signed-off-by: kongbai1996 <1782765876@qq.com> --- components/compositing/touch.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/compositing/touch.rs b/components/compositing/touch.rs index 53d0bec4d64..19df220a469 100644 --- a/components/compositing/touch.rs +++ b/components/compositing/touch.rs @@ -378,7 +378,8 @@ impl TouchHandler { { Some(i) => i, None => { - unreachable!("Got a touchmove event for a non-active touch point"); + error!("Got a touchmove event for a non-active touch point"); + return TouchMoveAction::NoAction; }, }; let old_point = touch_sequence.active_touch_points[idx].point;