My favorites | Sign in
Project Home Downloads Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  WontFix
Owner:  mat...@gmail.com
Closed:  Aug 2010


 
Reported by egrin...@gmail.com, Jul 12, 2010
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
(No comment was entered for this change.)
Status: Accepted
Aug 20, 2010
Project Member #2 mat...@gmail.com
 Issue 23  has been merged into this issue.
Aug 20, 2010
Project Member #3 mat...@gmail.com
This is issue is now at the top of my priority.
Owner: matt3o
Labels: -Priority-Medium Priority-High
Aug 23, 2010
Project Member #4 mat...@gmail.com
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
#5 jonas.fi...@gmail.com
Hi, perhaps this would work? At least, it did for me:
http://groups.google.com/group/iscroll/browse_thread/thread/5b2fbad6aa667907

Powered by Google Project Hosting