Droppable: Added TODOs.

This commit is contained in:
Scott González 2012-01-15 13:08:41 -05:00
parent 178c21c0b4
commit 66a594ec76

View File

@ -18,6 +18,9 @@ var guid = 0,
droppables = {}; droppables = {};
(function() { (function() {
// TODO: we need to react after the event, in case an event handler changes the position
// TODO: don't react if the event is canceled
// TODO: we need access to pointerPosition
var orig = $.ui.draggable.prototype._trigger; var orig = $.ui.draggable.prototype._trigger;
$.ui.draggable.prototype._trigger = function( type, event, ui ) { $.ui.draggable.prototype._trigger = function( type, event, ui ) {
var droppable, var droppable,
@ -138,6 +141,7 @@ $.ui.droppable.tolerance = {
}, },
// Pointer overlaps droppable // Pointer overlaps droppable
// TODO: this has to use pointerPosition, not event
pointer: function( event, edges, ui ) { pointer: function( event, edges, ui ) {
var xOverlap = event.pageX >= this.offset.left && var xOverlap = event.pageX >= this.offset.left &&
event.pageX <= edges.right, event.pageX <= edges.right,