| Issue 14: | Touch on a Select Object wont trigger the default event ( focus() ) | |
| 6 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. Create a div
2. Put inside a select object with some options
3. Call iScroll with the id of the previously created div
What is the expected output? What do you see instead?
I expect the same event as when I click on the object, a focus() event. What I get instead is a fake click that dont trigger anything.
What version of the product are you using? On what operating system?
3.4.5, iPhone 3.1 with PhoneGap.
Please provide any additional information below.
I found a workaround with that issue, in the touchStart: (line 187) after the commented lines (btw: they are here for any reason?), I've put this code:
if(e.target != "[object HTMLSelectElement]"){
e.preventDefault();
...
this.element.addEventListener(END_EVENT, this, false);
}
Everything works OK with this lines changed.
Jul 14, 2010
Project Member
#1
mat...@gmail.com
Status:
Accepted
Aug 20, 2010
Issue 23 has been merged into this issue.
Aug 20, 2010
This is issue is now at the top of my priority.
Owner:
matt3o
Labels: -Priority-Medium Priority-High
Aug 23, 2010
I spent the weekend on this issue. Unfortunately there's no easy solution. It can be done but not in a way that is completely fail safe (ie: you get the select working but you loose other features). BTW, I'm working on a new library that integrates with iScroll and will let you use form fields aplenty (basically rebuilds each form field with a CSS version).
Status:
WontFix
Dec 8, 2010
Hi, perhaps this would work? At least, it did for me: http://groups.google.com/group/iscroll/browse_thread/thread/5b2fbad6aa667907 |