don't report invisible neighbors

pull/95/head
jmoenig 2020-11-20 12:19:58 +01:00
rodzic 218f569f6e
commit b85e816a87
3 zmienionych plików z 8 dodań i 3 usunięć

Wyświetl plik

@ -4,6 +4,10 @@
* **Notable Fixes:**
* fixed stretching SVG costumes with fixed aspect ratios in Firefox
* only report neighbors that are visible
### 2020-11-20
* threads: only report neighbors that are visible, thanks Frederic, for reporting this bug!
### 2020-11-19
* new dev version

Wyświetl plik

@ -9,7 +9,7 @@
<script src="src/symbols.js?version=2020-10-07"></script>
<script src="src/widgets.js?version=2020-10-06"></script>
<script src="src/blocks.js?version=2020-11-17"></script>
<script src="src/threads.js?version=2020-11-15"></script>
<script src="src/threads.js?version=2020-11-20"></script>
<script src="src/objects.js?version=2020-11-19"></script>
<script src="src/gui.js?version=2020-11-19"></script>
<script src="src/paint.js?version=2020-05-17"></script>

Wyświetl plik

@ -61,7 +61,7 @@ StageMorph, SpriteMorph, StagePrompterMorph, Note, modules, isString, copy, Map,
isNil, WatcherMorph, List, ListWatcherMorph, alert, console, TableMorph, BLACK,
TableFrameMorph, ColorSlotMorph, isSnapObject, newCanvas, Symbol, SVG_Costume*/
modules.threads = '2020-November-15';
modules.threads = '2020-November-20';
var ThreadManager;
var Process;
@ -4904,8 +4904,9 @@ Process.prototype.reportGet = function (query) {
return new List(
stage.children.filter(each =>
each instanceof SpriteMorph &&
each.isVisible &&
(each !== thisObj) &&
each.bounds.intersects(neighborhood)
each.bounds.intersects(neighborhood)
)
);
case 'dangling?':