kopia lustrzana https://github.com/backface/turtlestitch
tweaked Morphic Hand >> allMorphsAtPointer to observe holes
rodzic
42efa35e39
commit
429a3b00aa
|
@ -11179,7 +11179,10 @@ HandMorph.prototype.morphAtPointer = function () {
|
||||||
|
|
||||||
HandMorph.prototype.allMorphsAtPointer = function () {
|
HandMorph.prototype.allMorphsAtPointer = function () {
|
||||||
return this.world.allChildren().filter(m => m.isVisible &&
|
return this.world.allChildren().filter(m => m.isVisible &&
|
||||||
m.visibleBounds().containsPoint(this.bounds.origin));
|
m.visibleBounds().containsPoint(this.bounds.origin) &&
|
||||||
|
!m.holes.some(any =>
|
||||||
|
any.translateBy(m.position()).containsPoint(this.bounds.origin))
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
// HandMorph dragging and dropping:
|
// HandMorph dragging and dropping:
|
||||||
|
|
Ładowanie…
Reference in New Issue