Index: third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js b/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js |
index 9209bfacc7d62f7a6469527423b618f65d201491..809b854269410d1421ddcb7ceec85e98d22f0688 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js |
+++ b/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js |
@@ -634,7 +634,9 @@ WebInspector.SourceFrame.prototype = { |
*/ |
scrollChanged: function(lineNumber) |
{ |
- this.dispatchEventToListeners(WebInspector.SourceFrame.Events.ScrollChanged, lineNumber); |
+ if (this._scrollTimer) |
+ clearTimeout(this._scrollTimer); |
+ this._scrollTimer = setTimeout(this.dispatchEventToListeners.bind(this, WebInspector.SourceFrame.Events.ScrollChanged, lineNumber), 100); |
}, |
_handleKeyDown: function(e) |