src/ngFormBuilder.js
function(event) {
        if (event.preventDefault) {
          event.preventDefault();
        }
        if (event.stopPropagation) {
          event.stopPropagation();
        }
        var dropOffset = jQuery(dropZone).offset();
        var dragData = angular.copy(scope.formBuilderDraggable);
        dragData.fbDropX = event.pageX - dropOffset.left;
        dragData.fbDropY = event.pageY - dropOffset.top;
        angular.element(dropZone).scope().$emit('fbDragDrop', dragData);
        dragEnd();
        return false;
      }
function(event) {
        if (event.preventDefault) {
          event.preventDefault();
        }
        if (event.stopPropagation) {
          event.stopPropagation();
        }
        var dropOffset = jQuery(dropZone).offset();
        var dragData = angular.copy(scope.formBuilderDraggable);
        dragData.fbDropX = event.pageX - dropOffset.left;
        dragData.fbDropY = event.pageY - dropOffset.top;
        angular.element(dropZone).scope().$emit('fbDragDrop', dragData);
        dragEnd();
        return false;
      }
function ( event ) { if ( event . preventDefault ) { event . preventDefault ( ) ; } if ( event . stopPropagation ) { event . stopPropagation ( ) ; } var dropOffset = jQuery ( dropZone ) . offset ( ) ; var dragData = angular . copy ( scope . formBuilderDraggable ) ; dragData . fbDropX = event . pageX - dropOffset . left ; dragData . fbDropY = event . pageY - dropOffset . top ; angular . element ( dropZone ) . scope ( ) . $emit ( 'fbDragDrop' , dragData ) ; dragEnd ( ) ; return false ; }
Drag drop event handler.
Drag drop event handler .