mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Droppable: Added TODOs.
This commit is contained in:
parent
178c21c0b4
commit
66a594ec76
4
ui/jquery.ui.droppable.js
vendored
4
ui/jquery.ui.droppable.js
vendored
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user