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

Loading…
Cancel
Save