fixed #238 - don’t trigger events for eclipsed morphs

(whose parent-chain contains a hidden morph)
pull/3/merge
jmoenig 2013-11-22 11:00:05 +01:00
rodzic 6cc86fa751
commit c8bc990011
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -2000,3 +2000,7 @@ ______
* BYOB, Blocks: custom block input slots reverting to default now show their default value
* Blocks: fixed read-only input slot coloring glitch, thanks Bernat, for reporting it!
* Objects: fixed #231 (watcher-display of Booleans)
131122
------
* Morphic: Dont trigger events for eclipsed morphs (whose parent-chain contains a hidden morph)

Wyświetl plik

@ -1035,7 +1035,7 @@
/*global window, HTMLCanvasElement, getMinimumFontHeight, FileReader, Audio,
FileList, getBlurredShadowSupport*/
var morphicVersion = '2013-October-15';
var morphicVersion = '2013-November-22';
var modules = {}; // keep track of additional loaded modules
var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug
@ -9321,7 +9321,10 @@ HandMorph.prototype.morphAtPointer = function () {
m.isVisible &&
(m.noticesTransparentClick ||
(!m.isTransparentAt(myself.bounds.origin))) &&
(!(m instanceof ShadowMorph))) {
(!(m instanceof ShadowMorph)) &&
m.allParents().every(function (each) {
return each.isVisible;
})) {
result = m;
}
});