[dnd] Don't allow dropping on non-reactive actors

This commit is contained in:
Dan Winship 2010-01-18 14:58:31 -05:00
parent a50d64e8e9
commit 88737b2083

View File

@ -250,7 +250,7 @@ _Draggable.prototype = {
dropX, dropY); dropX, dropY);
this._dragActor.show(); this._dragActor.show();
while (target) { while (target) {
if (target._delegate && target._delegate.acceptDrop) { if (target.reactive && target._delegate && target._delegate.acceptDrop) {
let [targX, targY] = target.get_transformed_position(); let [targX, targY] = target.get_transformed_position();
if (target._delegate.acceptDrop(this.actor._delegate, this._dragActor, if (target._delegate.acceptDrop(this.actor._delegate, this._dragActor,
(dropX - targX) / target.scale_x, (dropX - targX) / target.scale_x,