Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B8C44200B5C for ; Thu, 28 Jul 2016 08:03:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B76A8160A93; Thu, 28 Jul 2016 06:03:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0860B160A90 for ; Thu, 28 Jul 2016 08:03:24 +0200 (CEST) Received: (qmail 85601 invoked by uid 500); 28 Jul 2016 06:03:19 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 85589 invoked by uid 99); 28 Jul 2016 06:03:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2016 06:03:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 4C0E8185E0F for ; Thu, 28 Jul 2016 06:03:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id j3O1SavU4MMf for ; Thu, 28 Jul 2016 06:03:16 +0000 (UTC) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id B625660E90 for ; Thu, 28 Jul 2016 06:03:15 +0000 (UTC) Received: by mail-wm0-f46.google.com with SMTP id f65so237830114wmi.0 for ; Wed, 27 Jul 2016 23:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=tJM31ZfWTcjQbieHxeeXHifU6qHoqzpmX6cq1DWXECg=; b=D9JK2gya/eYYYN4lioPXhdzPATU5q4RmRGPScpM4KmUrFpuMFNwUsAYahhQSkozEFQ /i6djTrpsZnGIPFS4/0kjXpTvfhfyYVMUnE0oFlohmWEXaLJuR0G6Utdfd+1D8fZrAaV AHgVLHtS3cdB0TwMYJl38xp+yiyFkpVtCZqPYtN6712tp33TphWkAlionoTI9yqcMO6O tHEK8f6g8gnSnoL77PYbEIcYc8N0rsx4vdQjlUK1BwretFStZh7bFx04srfbuRhyZ4eb dhbNGHyTEgzSzuhrBCPIYtLKtpzI9MoqxkSRedZMuvPL5jic2uarQYTaSx03PjRfnsy3 NBcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=tJM31ZfWTcjQbieHxeeXHifU6qHoqzpmX6cq1DWXECg=; b=EMTmcYihsYfWYVO1oh9eXjHO5km1lDzEHf5jDGjgLcIBlRW/zL2SPc8dt24bBIvFLA R0787Jj/9QiGkrkGOorv0CBJ3XKVgcpaGXeLZqjn8FEfNVqDQyGJDTOQ9teNZz3qGfNN nKHpn5vkRng1jd0SQE9uVP35IH5xaD+BSIC118r5c0RbI1LaSovtD+WThX8QnMzH0yaY GfmH8KDeESba9HKTRgNIRlHIJ17jzbEs+cF/A4BOxXbrXITa4F2O+/3Qckmu2uo/pjJZ yRx/5eZkvGcCKcsa80ehIndEB2vk1EExUNzgKCsbGw7XuWj9af7WA8Nqel3x13nSSNH0 bZBg== X-Gm-Message-State: AEkoousxhX1P5GoRnCYI4RZxM422i4pbOLdwSHrFY8KyhwYudDoMhblmmtBMtP6mGzcQiw== X-Received: by 10.28.155.212 with SMTP id d203mr36643740wme.103.1469685792678; Wed, 27 Jul 2016 23:03:12 -0700 (PDT) Received: from [127.0.0.1] ([82.166.23.15]) by smtp.gmail.com with ESMTPSA id c131sm42664241wmh.1.2016.07.27.23.03.11 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jul 2016 23:03:12 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: FlexJS hitTestPoint From: Harbs In-Reply-To: <64BD18E9-6586-436B-BE80-37F552FC06B8@gmail.com> Date: Thu, 28 Jul 2016 09:03:09 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <84F718E7-33F3-47DF-A076-3AC43C784ABE@gmail.com> References: <4FEA6365-FDA6-47BD-AE7D-6CE809DB2438@gmail.com> <64BD18E9-6586-436B-BE80-37F552FC06B8@gmail.com> To: dev@flex.apache.org X-Mailer: Apple Mail (2.1878.6) archived-at: Thu, 28 Jul 2016 06:03:25 -0000 The other piece of this is stage.getObjectsUnderPoint. It would be nice to wrap that as well. The question is where to do that. = HTMLElementWrapper as well? What about getting global objects? There=92s = no =93stage=94 is there? On Jul 28, 2016, at 8:58 AM, Harbs wrote: > Any suggestions on how to implement this? >=20 > Should we just add a hitTestPoint function to HTMLElementWrapper that = behaves like the Flash version? >=20 > I=92m not sure what to do about the shape flag. I think the HTML = version takes shape into account automatically. >=20 > On Jul 28, 2016, at 8:46 AM, Alex Harui wrote: >=20 >>=20 >>=20 >> On 7/27/16, 10:40 PM, "Harbs" wrote: >>=20 >>> I just found this: >>> = http://stackoverflow.com/questions/8813051/determine-which-element-the-mou= >>> se-pointer-is-on-top-of-in-javascript >>>=20 >>> Seems pretty straight-forward. >>=20 >> That points to [2], which has the following snippet: >>=20 >> "If the specified point is outside the visible bounds of the document = or >> either coordinate is negative, the result is null." >>=20 >> I think Flash supports negative coords for off-list calculations, but = I >> could be wrong. But still it should be good enough for now. >>=20 >> -Alex >>=20 >> [2]=20 >> = https://developer.mozilla.org/en-US/docs/Web/API/Document/elementFromPoint= >>=20 >>=20 >=20