summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/UIEvents
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2023-05-13 15:55:49 +0100
committerAndreas Kling <kling@serenityos.org>2023-05-14 13:51:05 +0200
commit8bacd569ff37c34787545536337527f77e0e680b (patch)
treefa25a4ee21ff0c6b1fb48a1c9a9f16012d26e2b7 /Userland/Libraries/LibWeb/UIEvents
parent3894a8b995908d81e18565aa87b1c78d7217d955 (diff)
downloadserenity-8bacd569ff37c34787545536337527f77e0e680b.zip
LibWeb: Make the dblclick event bubble, cancelable and composed
Diffstat (limited to 'Userland/Libraries/LibWeb/UIEvents')
-rw-r--r--Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp b/Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp
index 0a10f90fd3..6e236c5ed3 100644
--- a/Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp
+++ b/Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp
@@ -77,7 +77,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<MouseEvent>> MouseEvent::create_from_platfo
void MouseEvent::set_event_characteristics()
{
- if (type().is_one_of(EventNames::mousedown, EventNames::mousemove, EventNames::mouseout, EventNames::mouseover, EventNames::mouseup, HTML::EventNames::click)) {
+ if (type().is_one_of(EventNames::mousedown, EventNames::mousemove, EventNames::mouseout, EventNames::mouseover, EventNames::mouseup, HTML::EventNames::click, EventNames::dblclick)) {
set_bubbles(true);
set_cancelable(true);
set_composed(true);