|
@@ -25,7 +25,9 @@ https://github.com/Bernardo-Castilho/dragdroptouch -->
|
|
|
var target = ev.target;
|
|
|
// First, confirm target location is valid
|
|
|
function targetCheck () {
|
|
|
- if (target.id == "module-input") {
|
|
|
+ if (!editMode) {
|
|
|
+ return false;
|
|
|
+ } else if (target.id == "module-input") {
|
|
|
return true;
|
|
|
} else if (!document.getElementById("module-input").contains(target)) {
|
|
|
// Ignore destinations not in the correct area
|