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

Unified Diff: chrome/browser/resources/file_manager/js/drag_selector.js

Issue 17287004: Made the visibility of Buttom bar updated at the end of drag selection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Get to use cr.dispatchSimpleEvent. Created 7 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/file_manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/drag_selector.js
diff --git a/chrome/browser/resources/file_manager/js/drag_selector.js b/chrome/browser/resources/file_manager/js/drag_selector.js
index 93bf1c5953e7bf63bd331b2bb39eea62ed015c6b..9766c6ebddf7d5386020efd704413f98e21df717 100644
--- a/chrome/browser/resources/file_manager/js/drag_selector.js
+++ b/chrome/browser/resources/file_manager/js/drag_selector.js
@@ -238,7 +238,10 @@ DragSelector.prototype.onMouseUp_ = function(event) {
'mousemove', this.onMouseMoveBound_, true);
this.target_.ownerDocument.removeEventListener(
'mouseup', this.onMouseUpBound_, true);
+ cr.dispatchSimpleEvent(this.target_, 'dragselectionend');
this.target_.cachedBounds = null;
- event.stopPropagation();
this.target_ = null;
+ // The target may select an item by reacting to the mouseup event.
+ // This surpress to the selecting behavior.
+ event.stopPropagation();
};
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/file_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698