Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(473)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js

Issue 2801373002: [DevTools] Listen to mousedown in SoftContextMenu once (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js b/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js
index c4046f7b639f3adcb6274eccbc8ea8adebbfb875..d94c4433f8ef964737a2a43dc3dbd745cc872538 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js
@@ -123,7 +123,7 @@ UI.GlassPane = class {
return;
// Deliberately starts with 3000 to hide other z-indexed elements below.
this.element.style.zIndex = 3000 + 1000 * UI.GlassPane._panes.size;
- document.body.addEventListener('click', this._onMouseDownBound, true);
+ document.body.addEventListener('mousedown', this._onMouseDownBound, true);
this._widget.show(document.body);
UI.GlassPane._panes.add(this);
this._positionContent();
@@ -133,7 +133,7 @@ UI.GlassPane = class {
if (!this.isShowing())
return;
UI.GlassPane._panes.delete(this);
- this.element.ownerDocument.body.removeEventListener('click', this._onMouseDownBound, true);
+ this.element.ownerDocument.body.removeEventListener('mousedown', this._onMouseDownBound, true);
this._widget.detach();
}

Powered by Google App Engine
This is Rietveld 408576698