[dnd] Don't allow dropping on non-reactive actors
This commit is contained in:
parent
a50d64e8e9
commit
88737b2083
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user