Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Nov 2013
    Posts
    2
    Vote Rating
    0
    warriorkitty is on a distinguished road

      0  

    Default Tap event on button fired twice [WITH SOLUTION]

    Tap event on button fired twice [WITH SOLUTION]


    Hello. First of all, I saw bug reports on this for Android, iOS applications. I saw this on Windows (Google Chrome) too and I've got a (temporary) solution.

    The problem was when you clicked the button, tap event was fired twice. This was the code inside controller:

    Code:
    config: {  
      control: {
        'LeftMenu button': {
          tap: 'onTap'
        }
      }
    }
    So, I've put my code inside controller's init function and now it works:

    Code:
    init: function(){
      var listeners = {};
      listeners['LeftMenu button'] = {
        tap: 'onTap'
      };
      this.control(listeners);
    }
    I hope it will help someone and if someone knows why the first code doesn't work, feel free to explain.

    Sencha Touch version: 2.3.1

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,852
    Vote Rating
    126
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default


    Are you extending your controller? I believe this is the issue you are referring. There is a suggested fix in the final post.
    http://www.sencha.com/forum/showthread.php?178841
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3
    Sencha User
    Join Date
    Nov 2013
    Posts
    2
    Vote Rating
    0
    warriorkitty is on a distinguished road

      0  

    Default


    Thank you for your response.

    No, I don't have two profiles inside application and yes, I am extending the Ext.app.Controller. I've had a simple example with a few buttons inside a panel.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi