Fixed the crash issue when the openharmony web component is adapted. (#36229)

Signed-off-by: kongbai1996 <1782765876@qq.com>
This commit is contained in:
Bi Fuguo 2025-03-31 17:46:49 +08:00 committed by GitHub
parent ee95ef53fb
commit 272da2981d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;