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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/ChartViewport.js

Issue 2501663002: DevTools: Fix mouse wheel when mouse is on the scrolled of the flamechart. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/ui_lazy/ChartViewport.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/ChartViewport.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/ChartViewport.js
index 84ffa29873af63df5dd6c6032c44ffbd20719bb0..f8ac02df6ad8357a28c8f9d2e7ed7ad2527662dc 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/ChartViewport.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/ChartViewport.js
@@ -8,10 +8,10 @@ UI.ChartViewport = class extends UI.VBox {
constructor() {
super(true);
- this.contentElement.addEventListener('mousewheel', this._onMouseWheel.bind(this), false);
- this.contentElement.addEventListener('keydown', this._handleZoomPanKeys.bind(this), false);
-
this.viewportElement = this.contentElement.createChild('div', 'fill');
+ this.viewportElement.addEventListener('mousewheel', this._onMouseWheel.bind(this), false);
+ this.viewportElement.addEventListener('keydown', this._handleZoomPanKeys.bind(this), false);
+
UI.installInertialDragHandle(
this.viewportElement, this._startDragging.bind(this), this._dragging.bind(this), this._endDragging.bind(this),
'-webkit-grabbing', null);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698