我正在使用 cordova 2.1.0 作为我的phonegap应用程序。 我有2个问题,请帮我搞清楚。
问题1:
点击功能可在Google nexus设备上运行,但不适用于三星galaxy S3,设备Android版本2.2.1和设备Android版本2.3.5。
这就是我实施它的方式
<div id="hi" class="hi"><img src="img/hi.png" onclick="hi()"/></div>
function hi()
{
window.location.href="hi.html";
}
问题2:
Ontouch和swipe是模拟器Android 2.2.1版和设备安卓版2.3.5中的一个非常大的问题。
我在我的日志猫中得到以下内容,而我触摸输入框以输入模拟器Android版本2.3.5。输入框消失
D/webview(7254): [TouchEvent::Down] [true][false] [-154,208]
D/webview(7254): [WebView::UPDATE_SELECTION] ====== start
在滑动时,我会在我的日志中获得以下内容
D/webview(7254): [TouchEvent::Down] [true][false] [-115,11]
W/webview(7254): Miss a drag as we are waiting for WebCore's response for touch down.
D/webview(7254): [TouchEvent::Down] [true][false] [9,-31]
D/webview(7254): [WebView::UPDATE_SELECTION] ====== start
W/webview(7254): Miss a drag as we are waiting for WebCore's response for touch down.
D/webview(7254): [TouchEvent::Down] [true][false] [62,-5]
W/webview(7254): Miss a drag as we are waiting for WebCore's response for touch down.
这是我的2.2.1版设备中 ONLY SWIPE
W/webview(626): Miss a drag as we are waiting for WebCore's response for touch down.
W/webview(626): Miss a drag as we are waiting for WebCore's response for touch down.
W/webview(626): Miss a drag as we are waiting for WebCore's response for touch down.
现在我怀疑是 cordova版或我的实施或设备
的问题