Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 68757109AA for ; Mon, 19 Aug 2013 02:26:39 +0000 (UTC) Received: (qmail 98793 invoked by uid 500); 19 Aug 2013 02:26:39 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 98769 invoked by uid 500); 19 Aug 2013 02:26:39 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 98761 invoked by uid 99); 19 Aug 2013 02:26:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Aug 2013 02:26:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of iclelland@google.com designates 209.85.219.41 as permitted sender) Received: from [209.85.219.41] (HELO mail-oa0-f41.google.com) (209.85.219.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Aug 2013 02:26:35 +0000 Received: by mail-oa0-f41.google.com with SMTP id j6so115388oag.14 for ; Sun, 18 Aug 2013 19:26:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=WlojWHvGKVqsoznDV/0pw1u+oNBD7iE4UEygV6fWh1w=; b=aqf9A+vg8bvXVDihOrl2WgNqqJpdeYs3ZzYsXseChtTrtlOtLJ/ZBL+B93DDE1yXbh dFYb/TcIfI/z1nbTxG6qKfL1oIhU9UW02BnF8e2irA7Ak0ueWNavOwa5WyjZzENMmlHb XKRjzd1hSxhurL7Z0YHAQqmzgsn01wKkGNoIGL24FlpBsipqy9UcDbpxGBL5rVVgAr1s 0Fdd20AfTMnvcIkaxfYKwFUgG2Q7pNwPVxNqnn8jrPnYoPyCMN1k7uyvriKdwZe+XC8D cbk8ADREc6v0onhxJ42JAOvCSRt4KM5s/6QPXRcPBYn7m6tB91X/+akpqZm7CJbvkYNG povg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=WlojWHvGKVqsoznDV/0pw1u+oNBD7iE4UEygV6fWh1w=; b=cy9wZu5ul78kc0vvvmGHCOGAelnQsTB5zXdx5tPb2i/DVOoDPQxjUT7WsyRRPXO1PZ +QJlviR/nlP9xACPp+Qa2IwV0HfGnSt8RMiwyj4o3Mqdy/R+UUdUqaq8smXG3U4l+DVE 2QN6PQ9WbNBlQ3vHSoXhGr0yMzsqVsUJkgENQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=WlojWHvGKVqsoznDV/0pw1u+oNBD7iE4UEygV6fWh1w=; b=fLhV3YPruUqEeEZj3N+ksQCDMmRq/kaGJgowipOpXcGaSSmbnf0BL66275TuT8Z11u AY+2uV3PBsvRozkxhIl/7ZjRbvQsrML6UH3V1E8ZKeN4weDHsGP+vSOBs4vL5eWCdHsV qbx48TCgcqul9ul6llQZPU7VJIc38acuPZuIskRwvTPc4T/ncMekx+vOyqdiiYax1msS LJkvCTqOCdqrVdStG0F/PTyWw2lZBiDM91TlzD0GzyyQAsUVuPJcdbOU9YRNx/7HFciV NlvUGIca2vx0iJuwr7opFfQxi/2+T6H0RX3XX2pGmCxYCOR1u+1tkW+2s+EYtBj/GoG0 CsaQ== X-Gm-Message-State: ALoCoQlXRj5HrrOzIwlm0SAbxhgdhvgg9owAw9HPCtAbeZ1nCYQFvRtnGXboW9YSYA5D4bFQt8wPAtd5Xeokp3gSZu6G4OuG1IDaCTCT8MhyDOtHpNn9ASVGetWjlw2iWvZSJg8cOCobxajH0QR7mlJtT7OB4Qeh8o4smAXORE2NsuiY5hpNtE7I703QS0LnSlXHyoyselPLe4gLwpwipcCitpfNx/xEzw== X-Received: by 10.182.233.198 with SMTP id ty6mr10655539obc.31.1376879174439; Sun, 18 Aug 2013 19:26:14 -0700 (PDT) MIME-Version: 1.0 Sender: iclelland@google.com Received: by 10.182.96.161 with HTTP; Sun, 18 Aug 2013 19:25:54 -0700 (PDT) In-Reply-To: <268a322d3825468f970158bd716d8628@BN1PR07MB135.namprd07.prod.outlook.com> References: <268a322d3825468f970158bd716d8628@BN1PR07MB135.namprd07.prod.outlook.com> From: Ian Clelland Date: Sun, 18 Aug 2013 22:25:54 -0400 X-Google-Sender-Auth: FXR-QSE5ix93me1YxigIWBrBleU Message-ID: Subject: Re: Cordova Gesture plugin To: "dev@cordova.apache.org" , Jonathan Bond-Caron Content-Type: multipart/alternative; boundary=001a11c2e81c176dc204e443aa46 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2e81c176dc204e443aa46 Content-Type: text/plain; charset=UTF-8 On Sun, Aug 18, 2013 at 12:54 PM, Jonathan Bond-Caron < jbondc@gdesolutions.com> wrote: > I participated at a #hackmtl event in Montreal and thought it would be a > good opportunity to try building a 'Cordova Gesture' plugin: > https://github.com/jbondc/cordova-plugin-gesture That looks really interesting as a project -- I'm excited about the possibilty of standardising the idea of "gesture recognition" across platforms. My first time using 3.0.0 went very smoothly, the simple command line tools > are great. > > Unfortunately I didn't complete the 'proof-of-concept' since I got stuck > where the javascript plugin seems to load but fails: > https://issues.apache.org/jira/browse/CB-4609 Is this preventing any plugins from working at all, or is it just something about your new plugin? The only thing that I can see that's a bit odd in your plugin is the android-feature line in plugin.xml: That value, I think, should end with the class that extends CordovaPlugin, namely "Gesture". > > An important note for the plugin to be viable, 2 methods would need to be > added to 'CordovaWebView': > disableTouchEvents() > registerGestureHandler() > > I'm actually working on a patch that should make it easier for an application to provide a custom WebView class that extends CordovaWebView, but I'm not sure how feasible it is for plugins to do the same. We might have to look at other ways of overriding methods like those (because I'm sure that they won't be the last ones). > The code works by intercepting the 'onTouchEvent', tries to detect a > gesture and pass it directly to the DOM: > > https://github.com/jbondc/mtlhack-PhoneGap-gesture/blob/master/cordova/platforms/android/src/org/hackmtl/phonegap/gestures/TestWebView.java > > Feel free to fork away and provide feedback, > Cheers, Jon > > Ian --001a11c2e81c176dc204e443aa46--