Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

feat(droppable): allow the drop overlap option to be configured

  • Loading branch information...
bwobbones authored and mattlewis92 committed Dec 24, 2017
1 parent 209f3af commit 2df8e87d7e3952342c400f200a83cff071ce6eb0
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/directives/mwlDroppable.js
@@ -11,6 +11,7 @@ angular
}

var DROP_ACTIVE_CLASS = $attrs.dropActiveClass || 'drop-active';
var INTERACT_OVERLAP_TYPE = $attrs.dropOverlap || 'pointer';

interact($element[0]).dropzone({
ondragenter: function(event) {
@@ -27,7 +28,8 @@ angular
$parse($attrs.onDrop)($scope, {dropData: event.relatedTarget.dropData});
$scope.$apply();
}
}
},
overlap: INTERACT_OVERLAP_TYPE
});

$scope.$on('$destroy', function() {

0 comments on commit 2df8e87

Please sign in to comment.
You can’t perform that action at this time.