fix issue #35449: handle touch events in on_input_event. (#35450)

Signed-off-by: kongbai1996 <1782765876@qq.com>
This commit is contained in:
Bi Fuguo 2025-02-13 16:05:03 +08:00 committed by GitHub
parent becd097585
commit 3a63622d6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1357,6 +1357,11 @@ impl IOCompositor {
return;
}
if let InputEvent::Touch(event) = event {
self.on_touch_event(event);
return;
}
if self.convert_mouse_to_touch {
match event {
InputEvent::MouseButton(event) => {