Commit 875523b8 authored by yamaguchi's avatar yamaguchi Committed by Commit bot

Avoid UI jankiness caused by triggering selection scan too frequently.

BUG=671517
TEST=manual test by the repro step noted in the bug
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2589823002
Cr-Commit-Position: refs/heads/master@{#439702}
parent d12b5bc5
...@@ -1211,7 +1211,7 @@ importer.RuntimeControllerEnvironment.prototype.addDirectoryChangedListener = ...@@ -1211,7 +1211,7 @@ importer.RuntimeControllerEnvironment.prototype.addDirectoryChangedListener =
importer.RuntimeControllerEnvironment.prototype.addSelectionChangedListener = importer.RuntimeControllerEnvironment.prototype.addSelectionChangedListener =
function(listener) { function(listener) {
this.selectionHandler_.addEventListener( this.selectionHandler_.addEventListener(
FileSelectionHandler.EventType.CHANGE, FileSelectionHandler.EventType.CHANGE_THROTTLED,
listener); listener);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment