Browse Source

Fix various dragging issues

master
Chris Smith 12 years ago
parent
commit
2252e0a1d7
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      index.html

+ 5
- 1
index.html View File

@@ -119,8 +119,12 @@
119 119
 
120 120
     $('.tower,.core').draggable({
121 121
      helper: 'clone',
122
-     containment: 'window',
122
+     containment: 'document',
123 123
      stop: function(evt, ui) {
124
+      if (!$(this).data('type')) {
125
+       return;
126
+      }
127
+
124 128
       var tower = {
125 129
        type: $(this).data('type'),
126 130
        rotation: 0,

Loading…
Cancel
Save