Explorar el Código

Fix various dragging issues

master
Chris Smith hace 12 años
padre
commit
2252e0a1d7
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5
    1
      index.html

+ 5
- 1
index.html Ver fichero

@@ -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…
Cancelar
Guardar