From dev-return-5261-archive-asf-public=cust-asf.ponee.io@royale.apache.org Mon Jul 2 16:38:23 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 80D80180626 for ; Mon, 2 Jul 2018 16:38:22 +0200 (CEST) Received: (qmail 25792 invoked by uid 500); 2 Jul 2018 14:38:21 -0000 Mailing-List: contact dev-help@royale.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@royale.apache.org Delivered-To: mailing list dev@royale.apache.org Received: (qmail 25777 invoked by uid 99); 2 Jul 2018 14:38:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2018 14:38:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 85AA5C0040 for ; Mon, 2 Jul 2018 14:38:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.825 X-Spam-Level: **** X-Spam-Status: No, score=4.825 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FORGED_HOTMAIL_RCVD2=1.187, FREEMAIL_REPLY=1, HTML_MESSAGE=2, KAM_INFOUSMEBIZ=0.75, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id cPwYpNqORlxa for ; Mon, 2 Jul 2018 14:38:18 +0000 (UTC) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-oln040092002027.outbound.protection.outlook.com [40.92.2.27]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id DC6A95F543 for ; Mon, 2 Jul 2018 14:38:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gNosKwnyqWMtiFkmD2GK10iOfQoYK9cloPyXWpSr3U4=; b=LITsZonmUE/t5EdZahZPV9Tee0ezhPCfntpGiU4sslNV8WBsMP2MxhOyCXuvv9qE3Xu2/uUxVFqhAgG5KXZ2iziTtoEQhzmzi5WVw8KJ9E7LQ7S8Dil3QxwyoVXp7PzZo97xISQl5g1SJx0hVGFNCHPIGEJ+rwZIux03U8HM5cQchYUC1jRdoQZhCYOBv3HViPueGwodxvlYE/It6F4YibrAxqLKii3Qis46ZMZM/FXORBQ0EKuCQDFC326nyiW68R2QCBtBj9zDf82k+5uP7h1oJHCaBOGSs+u+SdkzA/aMAuqEpY2026w9gKrkTifeo0/GfgZzLDl++KioBKqdHQ== Received: from SN1NAM01FT012.eop-nam01.prod.protection.outlook.com (10.152.64.56) by SN1NAM01HT161.eop-nam01.prod.protection.outlook.com (10.152.65.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.906.15; Mon, 2 Jul 2018 14:38:10 +0000 Received: from BN6PR12MB1268.namprd12.prod.outlook.com (10.152.64.56) by SN1NAM01FT012.mail.protection.outlook.com (10.152.64.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.906.15 via Frontend Transport; Mon, 2 Jul 2018 14:38:10 +0000 Received: from BN6PR12MB1268.namprd12.prod.outlook.com ([fe80::69c5:8e70:e29c:6724]) by BN6PR12MB1268.namprd12.prod.outlook.com ([fe80::69c5:8e70:e29c:6724%3]) with mapi id 15.20.0906.026; Mon, 2 Jul 2018 14:38:10 +0000 From: Yishay Weiss To: "dev@royale.apache.org" Subject: RE: List Item renderer Click event finds a component in its way Thread-Topic: List Item renderer Click event finds a component in its way Thread-Index: AQHUEhDS2XqJsI45QkWNZvSY+TR7Z6R8ABFM Date: Mon, 2 Jul 2018 14:38:10 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:053D9A6C9A286F68D175D48A12D723479FF04DEB58F1852C5D3464EA48A4668D;UpperCasedChecksum:8C8145007F6ACC1D17C063F4C4FBDBD95C6F06B8ABD1A7C6153C103D2DFEA036;SizeAsReceived:7048;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [feAHKuKv86wKG0TUz530TcSzPSV/+Jjv] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SN1NAM01HT161;7:i58Inv/lsxDNc3xsMfwHM7j3oJGVD4ENAPt39F13XuKevXZCCAQsfIgvT7E/SjrxpDAutUJr9OdV72gqxN50JEDHzd9048HmVX3vnEUMjaYWxANrIuzJpq3kAvqNPMujgPFRk6GZD8/lVIbdWNH0rY5I9P7Oa4PMZE0QVBa/PjSfPYhGMY3o2+7yxu31quZNkv2iu7GKTJihYiLVJxLRiMLUQLOzu5wGKvOWhvnI3k9t9MtkSaiNemXZzPA+OTpW x-incomingheadercount: 46 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125500)(1701031045);SRVR:SN1NAM01HT161; x-ms-traffictypediagnostic: SN1NAM01HT161: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(444000031);SRVR:SN1NAM01HT161;BCL:0;PCL:0;RULEID:;SRVR:SN1NAM01HT161; x-forefront-prvs: 07215D0470 x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(199004)(189003)(8936002)(53376002)(53366004)(81156014)(25786009)(606006)(6916009)(74316002)(86362001)(68736007)(1730700003)(97736004)(8676002)(14454004)(9686003)(236005)(55016002)(6436002)(54896002)(5640700003)(6306002)(82202002)(6246003)(966005)(20460500001)(2351001)(104016004)(5660300001)(229853002)(256004)(83332001)(76176011)(87572001)(73972006)(6506007)(6346003)(2900100001)(26005)(53546011)(102836004)(33656002)(446003)(11346002)(476003)(5250100002)(99286004)(486006)(106356001)(2501003)(105586002)(7696005)(15852004)(558044004)(19627235001);DIR:OUT;SFP:1901;SCL:1;SRVR:SN1NAM01HT161;H:BN6PR12MB1268.namprd12.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:; received-spf: None (protection.outlook.com: hotmail.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yishayjobs@hotmail.com; x-microsoft-antispam-message-info: FfuyTAsKfqtZ6yIWXDtIIzqxHsqnui/H3E1Q5zjStbt7ZK8ba5OQ5G9JwGOhd0hSt1eo8YSsYxS36HrUbmKO3K2HW0WzvwG7xzMEiVdHev5UVf3D6dhRr8jiP0QU35HwAzsjYl7fYSBoCBp251X3aBNQ+1Gs0ErYQIvlXvMJNVE8Sj8deTA83M7FQqnc5WYLrjuMwcRpbs+HRJDHz6VB17zAUcZzueo7i+zXYuMpuXs= Content-Type: multipart/alternative; boundary="_000_BN6PR12MB12688A568F546BAB4CA7D27BC8430BN6PR12MB1268namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: d4d70346-2c10-4f39-8c00-e767963926d9 X-MS-Exchange-CrossTenant-Network-Message-Id: 6726cb3f-5f55-4f68-05ea-08d5e0296f3b X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: d4d70346-2c10-4f39-8c00-e767963926d9 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2018 14:38:10.6062 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM01HT161 --_000_BN6PR12MB12688A568F546BAB4CA7D27BC8430BN6PR12MB1268namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Take a look at ItemRendererMouseController.handleMouseUp() in Basic. It use= s currentTarget. ________________________________ From: carlos.rovira@gmail.com on behalf of Carlos= Rovira Sent: Monday, July 2, 2018 5:27:08 PM To: dev@royale.apache.org Subject: List Item renderer Click event finds a component in its way Hi, what's the best way to handle a click event in a List when the Item renderer has some components that can interfere in the click event? I have an icon and a Label in the item renderer and if I click on one of those "event.target" is logically set to this components. How to make "event.target" always resolve to the item-renderer, even if I click in the label or the icon. If the label or the icon has a click event, then clicking on one of those components should call it's own click handler, but if nothing is set up, a click in any part of the renderer should call the list click event handler. In JS I can set pointer-events : none for sub components in item renderers but does not seems the best way to handle this thanks -- Carlos Rovira http://about.me/carlosrovira --_000_BN6PR12MB12688A568F546BAB4CA7D27BC8430BN6PR12MB1268namp_--