diff options
Diffstat (limited to 'examples/declarative/toys/dynamicscene/content/itemCreation.js')
-rw-r--r-- | examples/declarative/toys/dynamicscene/content/itemCreation.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/toys/dynamicscene/content/itemCreation.js b/examples/declarative/toys/dynamicscene/content/itemCreation.js index 4ee74c28c1..40f5415f9f 100644 --- a/examples/declarative/toys/dynamicscene/content/itemCreation.js +++ b/examples/declarative/toys/dynamicscene/content/itemCreation.js @@ -51,7 +51,7 @@ function endDrag(mouse) if (draggedItem == null) return; - if (draggedItem.x + draggedItem.width > toolbox.x) { //Don't drop it in the toolbox + if (draggedItem.y < toolbox.height) { //Don't drop it in the toolbox draggedItem.destroy(); draggedItem = null; } else { |