Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    46
    Vote Rating
    0
    Zyphrax is on a distinguished road

      0  

    Post Preventing zoom kills onclick

    Preventing zoom kills onclick


    REQUIRED INFORMATION

    Ext version tested:
    • Touch 2.0-pr2
    Browser versions tested against:
    • Safari (iPad)
    DOCTYPE tested against:
    • ____
    Description:
    • After starting the Sencha application and loading the viewport, the browser no longer listens to onclick events on my iPad.
    Steps to reproduce the problem:
    • Create a simple Hello World sencha application
    • Add a DIV to the html with an onclick attribute
    • Open the application in Safari on an iPad
    The result that was expected:
    • Working onclick (it does work on my Mac in Chrome/Safari)
    The result that occurs instead:
    • Onclick events are ignored
    Work around:
    Code:
    // Sencha bug: doPreventZooming kills onClick
    
    Ext.define('Ext.viewport.Hacks', {
           override: 'Ext.viewport.Ios',
           doPreventZooming: function(e) {}
    });

  2. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    This is expected behavior. If you want to listen to a Dom element in your application, you should create it dynamically using Ext.Element and then add listeners to that.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    46
    Vote Rating
    0
    Zyphrax is on a distinguished road

      0  

    Default


    I have an SVG container in my page and create SVG shapes in it (using jQuery SVG). I guess I won't be able to create those with Ext.Element.

    Seems like a big enforcement to just prevent zooming.

  4. #4
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    You can always turn off the zoom prevention as an option in your Viewport. There is still some work we are doing with this as the same type of issue happens with Google Maps.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 2

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..."