Results 1 to 5 of 5

Thread: [FIXED-521] 0.98: Sencha killing certain clicks on iOS devices

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default [FIXED-521] 0.98: Sencha killing certain clicks on iOS devices

    I am using some jQuery components/capabilities with Sencha (produces a really nice result... will demo some time), but 0.98 seems to be killing some 'click' events I need.

    The example is about this simple:
    Code:
                    var flap = $("<div class='flap'><span class='flapLabel'/></div>");
    
                    flap.bind("click", function() {
                        alert("Click");
                    });
    Clicking on the label doesn't work although clicking on the flap that isn't the label does [ but is _really_ hard to do ]. It seems to all come down to these new lines in 0.98:
    Code:
            document.addEventListener('click', this.onClick, true);
    
        onClick: function(e) {
            if (!e.isManufactured == true) {
                alert("killed click");
                e.stopPropagation();
                e.preventDefault();
            }
        },
    Where isManufactured is only set by:
    Code:
        fireTapEvent: function(e, info) {
            this.fire('tap', e, info);
    
            if (e.event)
                e = e.event;
    
            var clickEvent = document.createEvent("MouseEvent");
            clickEvent.initMouseEvent('click', e.bubbles, e.cancelable, document.defaultView, e.detail, e.screenX, e.screenY, e.clientX,
                    e.clientY, e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, e.metaKey, e.button, e.relatedTarget);
            clickEvent.isManufactured = true;
    
            (e.changedTouches ? e.changedTouches[0] : e).target.dispatchEvent(clickEvent);
        },
    I can try to guess what is happening (conversion of tap to click) and why the need to kill (not sure... maybe field focus issues?) but I was hoping someone could explain what you are trying to do and whether I can get my clicks back.

    Thanks,
    --Mark

  2. #2
    Sencha User BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534

    Default

    Please test against the most recent release.

  3. #3
    Sencha User
    Join Date
    May 2009
    Posts
    18

    Default

    Hello,

    I'm getting the same kind of problem using the "RGRAPH" library to draw chart in canvas. On each graph i can "tap" to display tooltip or any kind of information about the part of the chart clicked.
    But with 0.98 and 0.99, the "tap" is not working anymore on iPad or iPhone, tap is only detected on Chrome.

  4. #4
    Sencha User BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534

    Default

    Thanks for the bug report.

  5. #5
    Sencha User Jacky Nguyen's Avatar
    Join Date
    Jul 2009
    Location
    Palo Alto, California
    Posts
    469

    Default

    We have addressed this in 1.0.1 release. Please let me know if it helps
    Sencha Touch Lead Architect

Similar Threads

  1. [FIXED-489] Bug in SELECT field (iOS simulator, Sencha Touch 0.98)
    By sdruckerfig in forum Sencha Touch 1.x: Bugs
    Replies: 3
    Last Post: 4 Jul 2011, 11:54 AM
  2. [FIXED-429] 0.97: A return in a text area closes keyboard on iOS
    By parseroo in forum Sencha Touch 1.x: Bugs
    Replies: 2
    Last Post: 9 Nov 2010, 11:44 AM
  3. Replies: 6
    Last Post: 5 Nov 2010, 1:57 PM
  4. [FIXED-408] textfields unresponsive to first taps on iOS devices
    By Ralph Haygood in forum Sencha Touch 1.x: Bugs
    Replies: 14
    Last Post: 5 Nov 2010, 1:35 PM
  5. Height not being set correctly on iPad (or other iOS 3.x devices)
    By orangechicken in forum Sencha Touch 1.x: Discussion
    Replies: 6
    Last Post: 27 Sep 2010, 2:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •