mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 780582. Ensure that mouse-up/touch-end events are processed by some frame, so that capture is released. r=smaug
This commit is contained in:
parent
3d2256832d
commit
df4054d0e5
@ -476,6 +476,13 @@ public:
|
||||
mPresShell->FlushPendingNotifications(Flush_Layout);
|
||||
}
|
||||
nsIFrame* frame = mPresShell->GetCurrentEventFrame();
|
||||
if (!frame &&
|
||||
(aVisitor.mEvent->message == NS_MOUSE_BUTTON_UP ||
|
||||
aVisitor.mEvent->message == NS_TOUCH_END)) {
|
||||
// Redirect BUTTON_UP and TOUCH_END events to the root frame to ensure
|
||||
// that capturing is released.
|
||||
frame = mPresShell->GetRootFrame();
|
||||
}
|
||||
if (frame) {
|
||||
frame->HandleEvent(aVisitor.mPresContext,
|
||||
(nsGUIEvent*) aVisitor.mEvent,
|
||||
|
Loading…
Reference in New Issue
Block a user