diff options
author | Martok <martok@martoks-place.de> | 2022-11-27 16:35:56 +0100 |
---|---|---|
committer | Martok <martok@martoks-place.de> | 2022-11-27 16:35:56 +0100 |
commit | 0494d561c58c59feff0f6b850446b8316b4a8dd9 (patch) | |
tree | fe5b09b8bd906499b64b853ba9a473258e0bf7e1 /widget | |
parent | 41fed1ebf882524a33d9bb8188a5c6ca013a26f9 (diff) | |
download | uxp-0494d561c58c59feff0f6b850446b8316b4a8dd9.tar.gz |
Issue #2030 - Dispatch click on common interactive ancestor if mousdown/up are not on the same element
For example, if the mouse is dragged from one element to another while
staying inside the same button, dispatch from their common ancestor
Diffstat (limited to 'widget')
-rw-r--r-- | widget/MouseEvents.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widget/MouseEvents.h b/widget/MouseEvents.h index 4b8ff44ce6..c9a608bb4a 100644 --- a/widget/MouseEvents.h +++ b/widget/MouseEvents.h @@ -275,6 +275,10 @@ public: return result; } + // If during mouseup handling we detect that click event might need to be + // dispatched, this is setup to be the target of the click event. + nsCOMPtr<dom::EventTarget> mClickTarget; + // mReason indicates the reason why the event is fired: // - Representing mouse operation. // - Synthesized for emulating mousemove event when the content under the |