I'm upgrading my existing PhoneGap application to IOS 5. This also involves upgrading PhoneGap from 0.9.4 to 1.2PhoneGap 1.2のターゲットが<a href> twice in IOS 5
Now, a fundemental issue I encounter is that links are followed twice when you tap them. This is my setup:
I dynamically create an anchor element after the OnDeviceReady() event.
$('<a></a>').attr('href', 'javascript: log(\'tap!\');').appendTo(...);
Now when I tap this link once quickly, this is logged to the console:
12:11:34.233: 'tap!'
12:11:34.584: 'tap!'
Notice the 200+ ms delay.
When I tap it slowly (keep my finger on the screen longer) this is the result
12:11:34.233: 'tap!'
12:11:34.234: 'tap!'
This behavior only occurs on an iPhone or the iPhone Simulator. Does anyone else has a similar experience and maybe a solution/workaround?
の場合、jQuery Mobileも使用していますか?以前は 'vclick'を扱う際に問題がありました。そしてサイドノートで、PhoneGap 1.3が昨日リリースされた。http://phonegap.com/2011/12/19/phonegap-1-3-released/ –
nope私はjquery mobileを使用していないが、私はそれらを共有していると推測している同様の原因。 アップグレードのお知らせありがとうございます! – user1107799