Prevent accidental edit of nodes

Part of #217
pull/221/head
Nick O'Leary 2014-05-06 10:14:18 +01:00
parent baaf8167d3
commit d982d02810
1 changed files with 2 additions and 1 deletions

View File

@ -695,8 +695,9 @@ RED.view = function() {
}
function nodeMouseUp(d) {
if (clickElapsed > 0 && clickElapsed < 300) {
if (mousedown_node == d && clickElapsed > 0 && clickElapsed < 300) {
RED.editor.edit(d);
clickElapsed = 0;
return;
}
portMouseUp(d, d._def.inputs > 0 ? 1 : 0, 0);