[the-board] [ui] Emit "drag-motion" when dragging Thing's main box
- From: Lucas Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [the-board] [ui] Emit "drag-motion" when dragging Thing's main box
- Date: Fri, 14 Jan 2011 01:36:38 +0000 (UTC)
commit 3733d001141fbdacec3b5d26559f1d83a7fafcdb
Author: Lucas Rocha <lucasr gnome org>
Date: Thu Jan 13 21:39:30 2011 +0000
[ui] Emit "drag-motion" when dragging Thing's main box
To be used by Page to handle multiple selected things to move.
src/js/ui/thing.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/thing.js b/src/js/ui/thing.js
index d3366cd..432c148 100644
--- a/src/js/ui/thing.js
+++ b/src/js/ui/thing.js
@@ -326,6 +326,8 @@ Thing.prototype = {
this._updatePosition(newX, newY,
false /* not from state */);
+
+ this.emit("drag-motion", deltaX, deltaY);
},
_onMainBoxDragBegin : function(action, actor, eventX, eventY, modifiers) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]