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

Unified Diff: chrome/browser/resources/md_bookmarks/dnd_manager.js

Issue 2888863002: [MD Bookmarks] Refine mouse selection (Closed)
Patch Set: address comments Created 3 years, 7 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 | « chrome/browser/resources/md_bookmarks/actions.js ('k') | chrome/browser/resources/md_bookmarks/item.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_bookmarks/dnd_manager.js
diff --git a/chrome/browser/resources/md_bookmarks/dnd_manager.js b/chrome/browser/resources/md_bookmarks/dnd_manager.js
index 26345afe4d78b839bf3fa398ef92c5444e224e1e..d1b6117510be86eb4bb42977a836d66a4d2f27c7 100644
--- a/chrome/browser/resources/md_bookmarks/dnd_manager.js
+++ b/chrome/browser/resources/md_bookmarks/dnd_manager.js
@@ -415,8 +415,11 @@ cr.define('bookmarks', function() {
draggedNodes.indexOf(dragId) == -1) {
store.dispatch(bookmarks.actions.deselectItems());
if (!isBookmarkFolderNode(dragElement)) {
- store.dispatch(
- bookmarks.actions.selectItem(dragId, true, false, state));
+ store.dispatch(bookmarks.actions.selectItem(dragId, state, {
+ clear: false,
+ range: false,
+ toggle: false,
+ }));
}
draggedNodes = [dragId];
}
« no previous file with comments | « chrome/browser/resources/md_bookmarks/actions.js ('k') | chrome/browser/resources/md_bookmarks/item.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698