Remove duplicate click event in simulate_mouse_click (#36957)

After `InputEvent::Touch` processed by Script, it sends
`TouchEventProcessed` back to Constellation, which goes through hit-test
etc. and loops back to Script again. However,
`WebViewRenderer::simulate_mouse_click` should not send
`MouseButtonAction::Click` due to #36413

Testing: Manually tested by converting mouse to touch

cc @jdm @xiaochengh

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
Euclid Ye 2025-05-13 18:25:09 +08:00 committed by GitHub
parent bee491b0ff
commit e4f62d5c16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -689,11 +689,6 @@ impl WebViewRenderer {
action: MouseButtonAction::Up,
point,
}));
self.dispatch_input_event(InputEvent::MouseButton(MouseButtonEvent {
button,
action: MouseButtonAction::Click,
point,
}));
}
pub(crate) fn notify_scroll_event(