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 248EF200CCE for ; Sun, 23 Jul 2017 23:41:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2120316402C; Sun, 23 Jul 2017 21:41:33 +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 3F12B16402A for ; Sun, 23 Jul 2017 23:41:32 +0200 (CEST) Received: (qmail 36497 invoked by uid 500); 23 Jul 2017 21:41:31 -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 36485 invoked by uid 99); 23 Jul 2017 21:41:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Jul 2017 21:41:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7AC731A0755 for ; Sun, 23 Jul 2017 21:41:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.942 X-Spam-Level: **** X-Spam-Status: No, score=4.942 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, KAM_LOTSOFHASH=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Rz6XgfLztHEm for ; Sun, 23 Jul 2017 21:41:28 +0000 (UTC) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D09825F3A1 for ; Sun, 23 Jul 2017 21:41:27 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id m4so13045239wmi.4 for ; Sun, 23 Jul 2017 14:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:references:to:in-reply-to; bh=Jmpd3em0JuZsa2RVgD9Q4j9Co4xIFcRDRTBxJELHLvc=; b=M9fInmkfw3blqPwWfreiDRSg7PWCw4C5eOLQEfV+E+i62DoAkvvh5M3jc+PIbjLzYP NcKN43KpC57Z5LGCyHjsvswW7t7t+n67IFEF7lnr8SEDFmD2OMpJetQTvVY7CZtZnOBk OoN2OtzMFetIHxIXkk7SDvH1JxldAXrHQTmYJtEM064D/FDgMaYM2gXYtfFEaDGH2U0z FrCt2mO5bbDRNnH7YVncVFsPtgNQ5Lf7GrtRC9vr9M2GpdZ4sGcqJkp70Wpav3hsSLYp Lfj1w50AiE4FU1aVlmmNeo4seRRwZx/K+qZO1O9qHBlO04PdORRs0K7SmS0+ikV86JWv VA7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :references:to:in-reply-to; bh=Jmpd3em0JuZsa2RVgD9Q4j9Co4xIFcRDRTBxJELHLvc=; b=D/tthp1pTN1NOxOYBqd7/mEMpNNnLcM3/x8anCpThL1120/lgDCnpuHbph6U7QJFrc vgWMt3dYiQsov/3mblpSUCxOp6oRui2RpVYP7UyQuilu0hFQqGbHZXdywo0tqvLd65g3 yVYrZMLk312r1VLncembA83Y3ED/H8H0rKM5NuYpm9ELDFXLJNs46RpZEAu4xbBUqUUS 5jtX0NzvMm5tLsG+vloN0sKXUYbKiW92L0o+hsKKBK0kgcluGqUMyzx8scsQwQ8tcqzL vKoxgaH+Uhz8tybKUGxJwsat83fdprp3vIdEEcgaxIvxrh5juRg/f6YWO7LWxKencK64 Rf0g== X-Gm-Message-State: AIVw112fcoUkqBM6GdLGglrzO8cNIWO5sFHcolxqeoEi8ARvqQq0jRnO iSrbvA0G2nvJQFTV8/4= X-Received: by 10.28.152.136 with SMTP id a130mr3677571wme.177.1500846086643; Sun, 23 Jul 2017 14:41:26 -0700 (PDT) Received: from [10.0.0.6] ([195.192.229.28]) by smtp.gmail.com with ESMTPSA id t12sm7621511wmd.32.2017.07.23.14.41.25 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 23 Jul 2017 14:41:26 -0700 (PDT) From: Harbs Content-Type: multipart/alternative; boundary="Apple-Mail=_6F0A9F36-50E8-44AF-8E04-D09556DE2E9D" Message-Id: Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: [FlexJS] stopImmediatePropagation Date: Mon, 24 Jul 2017 00:41:23 +0300 References: <1500465913275-63421.post@n4.nabble.com> <1500467131312-63423.post@n4.nabble.com> <421946C6-207F-4C36-B2FB-C14FE8717DC5@gmail.com> <4559B113-958F-4066-9396-9C4300C0885D@gmail.com> <1500535793639-63442.post@n4.nabble.com> <5487BB06-6B12-44C0-8728-68974E12BABB@gmail.com> <1500615877731-63476.post@n4.nabble.com> <0314AB93-514A-44F6-BE46-F3BC5CE99400@gmail.com> <1500618107504-63479.post@n4.nabble.com> <32EC6BED-CA86-45DB-8041-DE5176C62F82@gmail.com> <9AC72D9D-D407-4EB0-AFBE-A088D3215956@gmail.com> To: dev@flex.apache.org In-Reply-To: <9AC72D9D-D407-4EB0-AFBE-A088D3215956@gmail.com> X-Mailer: Apple Mail (2.2104) archived-at: Sun, 23 Jul 2017 21:41:33 -0000 --Apple-Mail=_6F0A9F36-50E8-44AF-8E04-D09556DE2E9D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Oh.It seems like there=E2=80=99s an official way to do this: BrowserEvent.prototpye.getBrowserEvent() > On Jul 24, 2017, at 12:34 AM, Harbs wrote: >=20 > Bah! >=20 > I just discovered another issue with this branch. >=20 > The goog.BrowserEvent =E2=80=9Cevent_=E2=80=9D property is renamed = when the code is minified. Without hacking the goog code, using that = property is not gonna work=E2=80=A6 >=20 >> On Jul 23, 2017, at 1:44 PM, Harbs > wrote: >>=20 >> I feel like I went down the rabbit hole with this=E2=80=A6 >>=20 >> I think MouseEvent needs to work much like BrowserEvent in that it = proxies to the underlying event to get properties, coordinates, etc. >>=20 >> What I=E2=80=99m not really sure about is what happens if you want to = dispatch a MouseEvent on an element? (i.e. myButton.dispatchEvent(new = MouseEvent(MouseEvent.CLICK))) >>=20 >> Is that something which currently works? How should it work? Should = localX and localY be user-settable? >>=20 >> There=E2=80=99s also some code in MosueEvent in getScreenX and = getScreenY which calculates _stagePoint using localToGlobal. I=E2=80=99m = not sure that makes sense either. Assuming we can rely on the native = event, there=E2=80=99s no need to do those calculations ourselves. I can = not find a single use of MouseEvent anywhere, so I don=E2=80=99t have = any way of confirming that this ever worked or did anything. Was it ever = used in any of the examples? >>=20 >>=20 >>> On Jul 21, 2017, at 6:06 PM, Harbs > wrote: >>>=20 >>> Yes. That seems to be the case: >>> = https://github.com/google/closure-library/blob/608e0eaaa42bb5f041a7f067f25= 4907d47edf7d1/closure/goog/events/eventtarget.js#L371 = >>>=20 >>>> On Jul 21, 2017, at 5:18 PM, Alex Harui > wrote: >>>>=20 >>>> I think other goog code updates currentTarget as needed. They are = the >>>> same when no capture or bubbling, IIRC. >>>>=20 >>>> -Alex >>>>=20 >>>> On 7/20/17, 11:52 PM, "Harbs" > wrote: >>>>=20 >>>>> Yes. I need to copy the code from BrowserEvent. >>>>>=20 >>>>> Interestingly, goog.Events does not distinguish between target and >>>>> currentTarget. That does not seem very useful: >>>>>=20 >>>>> * Target of the event. >>>>> * @type {Object|undefined} >>>>> */ >>>>> this.target =3D opt_target; >>>>>=20 >>>>> /** >>>>> * Object that had the listener attached. >>>>> * @type {Object|undefined} >>>>> */ >>>>> this.currentTarget =3D this.target; >>>>>=20 >>>>>> On Jul 21, 2017, at 9:21 AM, piotrz > wrote: >>>>>>=20 >>>>>> Ahh Sorry I missed the point in his post. Do you see some = solution ? >>>>>>=20 >>>>>> Piotr >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> ----- >>>>>> Apache Flex PMC >>>>>> piotrzarzycki21@gmail.com >>>>>> -- >>>>>> View this message in context: >>>>>> = https://na01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fapache-f= l = >>>>>> ex-development.2333347.n4.nabble.com = %2FFlexJS-stopImmediatePropa= gation-tp >>>>>> = 63418p63479.html&data=3D02%7C01%7C%7C33b41ee272044f297c9208d4d005185f%7Cfa= 7 >>>>>> = b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636362167683568915&sdata=3Dxo66CMS= g >>>>>> ME%2BdFt7dg5qU6%2BYv7quJw6REm%2B5mKJbwpS0%3D&reserved=3D0 >>>>>> Sent from the Apache Flex Development mailing list archive at >>>>>> Nabble.com . >>>>>=20 >>>>=20 >>>=20 >>=20 >=20 --Apple-Mail=_6F0A9F36-50E8-44AF-8E04-D09556DE2E9D--