[the-board: 8/10] [ui] Unselect all if dragging starts on an unselected thing



commit e82e7ab385f238809efe6976cfc2095c46526f28
Author: Lucas Rocha <lucasr gnome org>
Date:   Tue Jan 25 22:13:06 2011 +0000

    [ui] Unselect all if dragging starts on an unselected thing

 src/js/ui/page.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/page.js b/src/js/ui/page.js
index 6d68dd2..f5fdfbc 100644
--- a/src/js/ui/page.js
+++ b/src/js/ui/page.js
@@ -737,6 +737,10 @@ Page.prototype = {
     _onThingDragBegin : function(thing) {
         thing.actor.raise(null);
 
+        if (!thing.selected) {
+            this.unselectAllThings();
+        }
+
         this._ensureDragArea(thing);
 
         if (this._activeThing && this._activeThing != thing) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]