mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
LibWeb: Propagate non-primary mouse button clicks on video elements
Otherwise, returning "no" here will disallow the browser process from showing a context menu, as the event handler will bail early.
This commit is contained in:
parent
bcfa4a34a1
commit
5f473bcb5f
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ void VideoPaintable::paint_placeholder_video_controls(PaintContext& context, Dev
|
|||
VideoPaintable::DispatchEventOfSameName VideoPaintable::handle_mouseup(Badge<EventHandler>, CSSPixelPoint position, unsigned button, unsigned)
|
||||
{
|
||||
if (button != GUI::MouseButton::Primary)
|
||||
return DispatchEventOfSameName::No;
|
||||
return DispatchEventOfSameName::Yes;
|
||||
|
||||
auto& video_element = layout_box().dom_node();
|
||||
auto const& cached_layout_boxes = video_element.cached_layout_boxes({});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue