summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-11-06 10:12:04 +0100
committerPatrick Simianer <p@simianer.de>2015-11-06 10:12:04 +0100
commit002cd97d5e4b9c9b0bd337d33b21fc8ab7b93bc8 (patch)
treebf070ffe3d8a54d3650e4c59efabccdc5b91f126
parent5490e1d27872c3ec3d3425f53066d5b3aa0d3454 (diff)
fix bug
-rw-r--r--derivation-editor.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/derivation-editor.js b/derivation-editor.js
index b987f77..bbeb092 100644
--- a/derivation-editor.js
+++ b/derivation-editor.js
@@ -195,6 +195,7 @@ var DE_up = function () {
*/
var DE_collide = function (obj)
{
+ if (DE_edit_mode) return;
if (obj["type_"]=="source") return;
// not a shape
if (!obj["id_"] || obj.type!="rect")
@@ -441,6 +442,7 @@ var DE_make_obj = function (x, text, type)
// mouseover -out
sh.mouseover(function() {
if (DE_dragging) return;
+ if (DE_edit_mode) return;
var idx, other_idx;
if (this["type_"] == "target") {
idx = 1;