From c8bc990011f8b508bbf153ae92a50c1e4d7ea232 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 22 Nov 2013 11:00:05 +0100 Subject: fixed #238 - don’t trigger events for eclipsed morphs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (whose parent-chain contains a hidden morph) --- history.txt | 4 ++++ 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) diff --git a/morphic.js b/morphic.js index aac180d..7305785 100644 --- a/morphic.js +++ b/morphic.js @@ -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; } }); -- cgit v1.3.1