mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +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
Notes:
sideshowbarker
2024-07-17 04:49:48 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/5f473bcb5f Pull-request: https://github.com/SerenityOS/serenity/pull/18859
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…
Reference in a new issue