fixed the realtime bug where things were moving around unexpectedly

This commit is contained in:
Connor Turland 2013-06-27 14:15:28 -04:00
parent 211d9220dd
commit 1e6210a117
8 changed files with 73 additions and 27 deletions

View file

@ -196,7 +196,12 @@ function onDragMoveTopicHandler(node, eventInfo, e) {
var theta = Math.atan2(pos.y, pos.x);
node.pos.setp(theta, rho);
} else if (whatToDo == 'only-drag-this-one') {
node.pos.setc(pos.x, pos.y);
newPos = new $jit.Complex()
newPos.x = pos.x
newPos.y = pos.y
node.setPos(newPos, 'start')
node.setPos(newPos, 'current')
node.setPos(newPos, 'end')
node.setData('xloc', pos.x);
node.setData('yloc', pos.y);
} else {
@ -215,7 +220,12 @@ function onDragMoveTopicHandler(node, eventInfo, e) {
var n = MetamapsModel.selectedNodes[i];
var x = pos.x + xOffset[i];
var y = pos.y + yOffset[i];
n.pos.setc(x, y);
newPos = new $jit.Complex()
newPos.x = x
newPos.y = y
n.setPos(newPos, 'start')
n.setPos(newPos, 'current')
n.setPos(newPos, 'end')
n.setData('xloc', x);
n.setData('yloc', y);
}//for

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View file

@ -151,8 +151,8 @@ WebSocketMain.swf: WebSocketMain-0de980edb45e36785bf9d862baa032bb.swf
WebSocketMain/index.swf: WebSocketMain-0de980edb45e36785bf9d862baa032bb.swf
WebSocketMainInsecure.swf: WebSocketMainInsecure-c4377647e57e58cacc692c8a51afc9f8.swf
WebSocketMainInsecure/index.swf: WebSocketMainInsecure-c4377647e57e58cacc692c8a51afc9f8.swf
application.js: application-6e0b3ba315101f0bf5cb76f5e8fc83d6.js
application/index.js: application-6e0b3ba315101f0bf5cb76f5e8fc83d6.js
application.js: application-40bb181301f9f4d45accef23fc2bdcc4.js
application/index.js: application-40bb181301f9f4d45accef23fc2bdcc4.js
scroll/mCSB_buttons.png: scroll/mCSB_buttons-0642ce29bb568932e832d150141614e6.png
scroll/mCSB_buttons/index.png: scroll/mCSB_buttons-0642ce29bb568932e832d150141614e6.png
application.css: application-29a4cde7de3558ba88029e406f16f1d2.css