Skip to content

Commit

Permalink
Merge pull request #95 from aboveproperty/master
Browse files Browse the repository at this point in the history
Allows drag and drop polyfill for mobile to determine droppable areas…
  • Loading branch information
dgavey authored May 29, 2017
2 parents 3a81615 + 14dbc8d commit a47f02d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions addon/components/sortable-objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ export default Ember.Component.extend( {
this.set('dragCoordinator.sortComponentController', this);
},

dragEnter: function() {
//needed so drop event will fire
return false;
},

dragOver: function() {
//needed so drop event will fire
return false;
Expand Down
11 changes: 10 additions & 1 deletion addon/mixins/droppable.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var Droppable = Ember.Mixin.create({
handleDragOut() {},

/**
* @method _handleDragOver
* @method dragOver
* @private
*/

Expand All @@ -94,6 +94,15 @@ var Droppable = Ember.Mixin.create({
}
},

/**
* @method dragEnter
* @private
*/

dragEnter: function() {
return false;
},

/**
* @method drop
* @private
Expand Down

0 comments on commit a47f02d

Please sign in to comment.