-
16 Jul 2012 12:42 AM #1
tap event fires two events on android
tap event fires two events on android
REQUIRED INFORMATION Ext version tested:
- Sencha touch 2.0.1.1
- Safari iOS
- Chrome on android
- Android defalut browser
- Each time I click on the screen, two events is fired. ( Happens only on Android!)
- Create a simple form with 6 text fields
- Add focus event to one of the fields.
- In the focus event function a popup will be created and shown
- The popup will include an Ok button
- The Ok button handler will destroy the popup
- The popup will be destroyed.
- The popup is destroyed and the field behind is in focus (two events is fired)
HELPFUL INFORMATION Screenshot or Video:Code:{ xtype: 'container', id: 'newcardcvvfieldset', layout: { type: 'hbox' }, items: [ { xtype: 'textfield', cls: [ 'customField2' ], id: 'Depositcvvnumber', itemId: 'mytextfield9', width: 710, label: Messages.NEWCARDCVV2, labelCls: 'labelColor', style:'font-size:18px;', labelWidth: '49%', required: true, maxLength: 3, placeHolder: Messages.NEWCARDCVV2PLACEHOLDER, inputType: 'tel' }, { xtype: 'button', id: 'cvvMakeDepositBtn', itemId: 'mybutton9', ui: 'btnlightBlue', style:'font-size:18px;', width: 31 } ] } //the listener listeners: [ { fn: 'onCvvMakeDepositBtnTap', event: 'tap', delegate: '#cvvMakeDepositBtn' }] // the function onCvvMakeDepositBtnTap: function(button, e, options) { Ext.getCmp('cvvMakeDepositBtn').disable(true); this.popup = Ext.Viewport.add({ xtype: 'panel', floating:true, modal:true, centered:true, width:310, hideOnMaskTap:false, id:'DepositCvvAlertPanel', height:240, //style:'margin-left:5px;', styleHtmlContent:true, items:[{ docked:'top', xtype:'toolbar', ui:'lightBlue', title:CVVtitle },{ html:CVVAlertMsg },{ xtype:'button', id:'cvvOkButton', text:OkButton, ui:'btnlightBlue', //centered:true, style:'font-size:16px;margin-top:0px;', height:40, handler: function(){ Ext.getCmp('DepositCvvAlertPanel').destroy(); Ext.getCmp('cvvMakeDepositBtn').enable(true); DoubleClickFlag = true; } }] }); if (DoubleClickFlag){ hideKeyboard(); this.popup.show('pop'); DoubleClickFlag = false; } },- NA
- not provided
- sencha-touch.css
- custom css files
- Android 2.3.3 + 3 + 4 + 4.1
-
16 Jul 2012 4:17 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
This is a known issue. Do note that Sencha Touch does not support Android 3 also.
http://www.sencha.com/forum/showthread.php?230087Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
17 Jul 2012 1:32 AM #3
What do you mean by Doesn't support Android 3?
Basically most of the andriod devices is 3 based?!
Never the less My application works on android 3 and on android 2.3.3 also, of course except for couple of bugs...
-
17 Jul 2012 4:19 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
Meaning it may work but things may not work as we don't support Android 3 as it's browser has too many inconsistencies to support.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
This issue duplicates another issue.


Reply With Quote