diff options
author | Moonchild <moonchild@palemoon.org> | 2022-11-30 22:04:23 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-11-30 22:04:23 +0000 |
commit | 8f266bb6e7757e5473af89f9f32a9c3e8f109a7c (patch) | |
tree | 4a2193d8e14174c8f8b302636356aa34634a5b75 /widget | |
parent | 2e888727e0e08c2f34544da3e410bc03e58fb312 (diff) | |
parent | 0494d561c58c59feff0f6b850446b8316b4a8dd9 (diff) | |
download | uxp-8f266bb6e7757e5473af89f9f32a9c3e8f109a7c.tar.gz |
Merge pull request 'Allow <button> children to receive pointer events' (#2043) from martok/UXP-contrib:2030-button into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2043
Diffstat (limited to 'widget')
-rw-r--r-- | widget/BasicEvents.h | 2 | ||||
-rw-r--r-- | widget/MouseEvents.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/widget/BasicEvents.h b/widget/BasicEvents.h index 0ce0f587dd..9631dfd257 100644 --- a/widget/BasicEvents.h +++ b/widget/BasicEvents.h @@ -80,6 +80,8 @@ public: // the first <label> element is clicked, that one may set this true. // Then, the second <label> element won't handle the event. bool mMultipleActionsPrevented : 1; + // Similar to above but expected to be used during PreHandleEvent phase. + bool mMultiplePreActionsPrevented : 1; // If mIsBeingDispatched is true, the DOM event created from the event is // dispatching into the DOM tree and not completed. bool mIsBeingDispatched : 1; 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 |