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) --- morphic.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'morphic.js') 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