diff options
| author | jmoenig <jens@moenig.org> | 2013-11-22 11:00:05 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-11-22 11:00:05 +0100 |
| commit | c8bc990011f8b508bbf153ae92a50c1e4d7ea232 (patch) | |
| tree | 53214d7901e2953f2950054f69d600c6661af770 | |
| parent | 6cc86fa7515379571928674b7fe29e6b25acf596 (diff) | |
| download | snap-byow-c8bc990011f8b508bbf153ae92a50c1e4d7ea232.tar.gz snap-byow-c8bc990011f8b508bbf153ae92a50c1e4d7ea232.zip | |
fixed #238 - don’t trigger events for eclipsed morphs
(whose parent-chain contains a hidden morph)
| -rwxr-xr-x | history.txt | 4 | ||||
| -rw-r--r-- | morphic.js | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/history.txt b/history.txt index 8d69104..5228d50 100755 --- a/history.txt +++ b/history.txt @@ -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: Don’t trigger events for eclipsed morphs (whose parent-chain contains a hidden morph) @@ -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; } }); |
