-
17 Aug 2011 4:31 PM #11Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
Can you try a third case... Make it just like the 2nd test case but just add the Sencha Touch JS and CSS code?
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.
-
17 Aug 2011 6:30 PM #12
I have created with sencha touch js and the css added, and same problem focus does not work.
http://www.oismobile.com/touch3.html
I've tried different ways already as far as firing the focus via a sencha button on different listening options. And it goes back to simply adding the js file where it breaks even a regular html button with a focus.
-
17 Oct 2011 10:12 AM #13
Any work around for the issue
Any work around for the issue
Hi Guys,
We are also facing the text field focus issue. Wondering any body has any work around for the focus issue?
Appreciate your help on this.
Thanks in advance
-
2 Nov 2011 12:07 PM #14
I'm unsure why you guys are not just using Ext.get('id-of-input').focus() to do this? Also, why are you adding direct listeners using "onclick", and not using our API?
Rob
-
2 Nov 2011 12:19 PM #15
Look at the thread, no matter what you use it will not work, we went back to basics to test the problem. It does not matter if you use Ext.get('id-of-input').focus() or any other derivative it will just not work. Can you look at the samples and test out. Since I have also an open ticket in support for over a Month and it has not been fixed either. The problem is that in Mobile Safari you cannot invoke a focus command. The only time you can do that is when it's initiated via a Touch Command. However Sencha captures all touch commands and re-sends them. There the original touch command is lost and focus will not work.
-
2 Nov 2011 1:16 PM #16
Have you tested it with Touch 2? I tested with ST2 and it works fine. I'll have Jacky our resident event guru to have a look-
-
2 Nov 2011 1:50 PM #17Sencha - Sencha Touch Dev Team
- Join Date
- Jul 2009
- Location
- Palo Alto, California
- Posts
- 469
- Vote Rating
- 9
There was an old hack in Touch 1.x event manager to make click events happen instantly instead of having a default of 300ms delay, and this issue is a side-effect of that.
If you can't move to Touch 2 yet and have to stick with 1.x for a while, here's an (dirty but works) override. Put this right after the inclusion of sencha-touch.js.
Code:Ext.gesture.Manager.onMouseEvent = Ext.emptyFn; Ext.gesture.Manager.onTouchEnd = function(e) { if (Ext.is.Blackberry) { e.preventDefault(); } if (this.isFrozen) { return; } var gestures = this.currentGestures.slice(0), ln = gestures.length, i, gesture, endPoint, needsAnotherMove = false, touch = e.changedTouches ? e.changedTouches[0] : e; if (this.startPoint) { endPoint = Ext.util.Point.fromEvent(e); if (!(this.lastMovePoint || this.startPoint)['equals'](endPoint)) { needsAnotherMove = true; } } for (i = 0; i < ln; i++) { gesture = gestures[i]; if (!e.stopped && gesture.listenForEnd) { if (needsAnotherMove) { gesture.onTouchMove(e, touch); } gesture.onTouchEnd(e, touch); } this.stopGesture(gesture); } if (Ext.supports.Touch && this.isClick) { this.isClick = false; } this.lastMovePoint = null; this.followTouches = []; this.startedChangedTouch = false; this.currentTargets = []; this.startEvent = null; this.startPoint = null; };Sencha Touch Lead Architect
-
20 Jan 2012 4:31 AM #18
Jacky Nguyen, are you sure that this is a correct solution?
I've pasted your code right after including the sencha lib, and it not only doesn't make the focus() functionality working, it also breaks the radio buttons (if I have several radio buttons, I can click only on one of them, and others are becoming unresponsive).
It's a very bad bug, and there're lots of folks having the same problem on this forum and on the Internet.
Didn't see anyone who said that he had successfully fixed it.You're a true obsessive programmer, if your answers to the questions are totally correct and totally useless at the same time.
-
13 Jun 2012 1:25 AM #19
IOS Focus problem it is on ver. 2.0.1 too
It 's no solve, I have open a tikect too
I hope that this BUG will solve as soon as possible because It is a big problem for application on IOS
Davide
-
2 Aug 2012 10:41 PM #20
Someone added very promisingly notice
Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-409 in 2.0.
at the top of topic. Wonderful!
Does he or she not forget saying when or what exact version ST 2.0 is? 2.0.1 has no fix. May be 2.0.1.1 or 2.0.2 which is accessible for subscribers only? Is it really fixed or only looks like ...
Thank for info
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote