tweaked Morphic Hand >> allMorphsAtPointer to observe holes

pull/95/head
jmoenig 2020-07-17 16:06:03 +02:00
rodzic 42efa35e39
commit 429a3b00aa
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -11179,7 +11179,10 @@ HandMorph.prototype.morphAtPointer = function () {
HandMorph.prototype.allMorphsAtPointer = function () {
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: