mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
parent
bee491b0ff
commit
e4f62d5c16
1 changed files with 0 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue