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

Unified Diff: chrome/browser/resources/bookmark_manager/main.html

Issue 1780015: Fix Dropping in the bookmark manager (Closed)
Patch Set: Fix Nits Created 10 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
« 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: chrome/browser/resources/bookmark_manager/main.html
diff --git a/chrome/browser/resources/bookmark_manager/main.html b/chrome/browser/resources/bookmark_manager/main.html
index e3da8913206da237cf818885bba89d1d9d2b2b93..57dada9906efb4a428fe3016496101303716b7db 100644
--- a/chrome/browser/resources/bookmark_manager/main.html
+++ b/chrome/browser/resources/bookmark_manager/main.html
@@ -896,18 +896,23 @@ var dnd = {
init: function() {
var boundClearData = cr.bind(this.clearDragData, this);
+ function deferredClearData() {
+ setTimeout(boundClearData);
+ }
document.addEventListener('dragstart', cr.bind(this.handleDragStart, this));
document.addEventListener('dragenter', cr.bind(this.handleDragEnter, this));
document.addEventListener('dragover', cr.bind(this.handleDragOver, this));
document.addEventListener('dragleave', cr.bind(this.handleDragLeave, this));
document.addEventListener('drop', cr.bind(this.handleDrop, this));
- document.addEventListener('dragend', boundClearData);
+ document.addEventListener('dragend', deferredClearData);
+ document.addEventListener('mouseup', deferredClearData);
chrome.experimental.bookmarkManager.onDragEnter.addListener(cr.bind(
this.handleChromeDragEnter, this));
- chrome.experimental.bookmarkManager.onDragLeave.addListener(boundClearData);
- chrome.experimental.bookmarkManager.onDrop.addListener(boundClearData);
+ chrome.experimental.bookmarkManager.onDragLeave.addListener(
+ deferredClearData);
+ chrome.experimental.bookmarkManager.onDrop.addListener(deferredClearData);
}
};
« 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