Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User dayext's Avatar
    Join Date
    Jul 2008
    Location
    Basel, Switzerland
    Posts
    46
    Vote Rating
    0
    dayext is on a distinguished road

      0  

    Default [FIXED-154] stopEvent does not work

    [FIXED-154] stopEvent does not work


    Hi,
    trying to stop a doubletap event with Event#stopEvent, which is supposed to cancel the event. On an iPad, this should block the zoom.
    Uncommenting lines 616 and 617 of the TouchEventManager#fireEvents method fixes the issue. But there is certainly a reason why these 2 lines are commented.

    sencha-touch v 0.9.1

    Code:
    fireListeners : function(ename, track, e) {
            var me = CQ.Ext.TouchEventManager;
    
            e.type = ename;
            e.target = track.target;
            e.touch = track.touch;
            e.identifier = track.touch.identifier;
    
            var targets = track.events[ename],
                target, listeners, listener,
                id, i, ln;
    
            if (targets) {
                for (id in targets) {
                    listeners = targets[id];
                    for (i = 0, ln = listeners.length; i < ln; i++) {
                        listener = listeners[i];
                        if (listener.call(CQ.Ext.getDom(id), e) === false || e.cancel === true) {
                            if (e.browserEvent) {
    //UNCOMMENT 2 FOLLOWING LINES
                                //e.browserEvent.stopPropagation();
                                //e.browserEvent.preventDefault();
                            }
                            return false;
                        }
                    }
                }
            }
    
            return true;
        },
    Regards,
    alexc
    Day Ext Developers

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
    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 issue has been entered in Trac for review.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    8
    TommyMaintz will become famous soon enough

      0  

    Default


    There was really no reason why those two lines were commented out. I did that to test some Android touch bugs and somehow the change managed to get to the master branch and into the release.

    This will be fixed in the next release (0.9.3) due beginning of next week.

  4. #4
    Sencha User
    Join Date
    Apr 2011
    Posts
    14
    Vote Rating
    0
    hejp is on a distinguished road

      0  

    Default


    Hi,
    In Android, I tried to stop event, but it doesn't work.(it went into the method, but it didn't stop the event)
    Code:
    onMyKeyup: function(fld, e) {
    	if (e.browserEvent.keyCode == 13) {
    		fld.fieldEl.dom.blur();
                    e.stopEvent();
    	}
    }
    What's the right code?

  5. #5
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    5
    Bucs is on a distinguished road

      0  

    Default


    I am having all kinds of issue with Android support, to which I am about to create a new thread. But @hejp, I currently am having a problem with listening to a keyup event on Android...where did you find the onMyKeyup event, and does that work...i.e. is that firing the function? Obviously, I will probably also have the same issue with the stop event, which will need to be resolved as well, but hey, it's a start

  6. #6
    Sencha User
    Join Date
    Apr 2011
    Posts
    14
    Vote Rating
    0
    hejp is on a distinguished road

      0  

    Default


    Hi Bucs:
    onMykeyup event code:
    Code:
    items : [{
    		xtype : 'textfield',
    		name : 'city',
    		label : 'From',
                    listeners: {
                          keyup: this.onMykeyup,
                          scope: this
                    }
    	}, {
    		layout : 'vbox',
    		defaults : {
    		       xtype : 'button',
    			flex : 1,
    			style : 'margin: .5em;'
    		},
    		items : [{
    			text : 'Submit',
    			scope : this,
    			hasDisabled : false,
    			handler : this.onMySubmit
    		}]
    	}]
    
    ...
    
    onMyKeyup: function(fld, e) {
    	if (e.browserEvent.keyCode == 13) {
    		fld.fieldEl.dom.blur();
                    e.stopEvent();
    	}
    }
    Note: Now it works. The reason I had find. The submit button(if you write handler : onMySubmit, OK; and if you wirte handler : onSubmit, Wrong), so the event name is not go-as-you-please. UnderStand? Forgive my English.

  7. #7
    Sencha User
    Join Date
    Apr 2011
    Posts
    14
    Vote Rating
    0
    hejp is on a distinguished road

      0  

    Default


    Hi Bucs:
    do you met this problem, It confuse me for a long time, and I have not resolve it yet.
    http://www.sencha.com/forum/showthre...84#post594384.
    If you find the answer, tell me. I will really appreciate it. Thank you!

Similar Threads

  1. [FIXED-154] MenuSeparator
    By j-joey in forum Ext Designer: Bugs
    Replies: 2
    Last Post: 24 May 2010, 12:20 PM
  2. Ext.EventObject.stopEvent() doesn't work on Chrome
    By Daniels in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 6 Nov 2009, 4:52 AM
  3. stopEvent not work in Firefox 3.5
    By zipboy in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 23 Aug 2009, 2:30 AM
  4. [FIXED-154][3.0.x r4982+] rendering issues
    By marcing in forum Ext 3.x: Bugs
    Replies: 3
    Last Post: 19 Aug 2009, 10:20 PM
  5. Ext.KeyMap stopEvent does not work in IE
    By sgolla in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 8 Jan 2009, 6:00 AM

Thread Participants: 4

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar