PhoneGap的+安卓触摸事件错误singleCursorHandlerTouchEvent -getEditableSupport假 [英] phonegap + android Touch events Error singleCursorHandlerTouchEvent -getEditableSupport False

查看:160
本文介绍了PhoneGap的+安卓触摸事件错误singleCursorHandlerTouchEvent -getEditableSupport假的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用cordova2.7,机器人4+,我在三星触摸事件的问题,相同的应用程序上没有错误HTC Onex公司运行,这个错误会导致一个非常缓慢的触摸事件的响应。
使用免费的手绘图时,这个问题是特别显示 - 功能我的应用程序的

I'm using cordova2.7, android 4+, I have a problem in Touch events on Samsung, same app runs on HTC onex without errors, this error cause a very slow touch event response. The problem is specially be shown when use free hand drawing - feature of my app.

我在这个错误现在两天了。

I'm in this error for two days now.

主要

singleCursorHandlerTouchEvent -getEditableSupport FASLE

singleCursorHandlerTouchEvent -getEditableSupport FASLE

引发

小姐拖累大家都在等待的WebCore的触摸响应下来。

Miss a drag as we are waiting for WebCore's response for touch down.

logcat的

10月6日至24日:12:38.013:D / DroidGap(23854):恢复在App
10月6日至24日:12:38.052:D / DroidGap(23854):暂停应用!
10月6日至24日:12:43.443:D / DroidGap(23854):恢复在App
10月6日至24日:12:47.599:V /的WebView(23854):singleCursorHandlerTouchEvent -getEditableSupport FASLE
10月6日至24日:12:47.599:W /的WebView(23854):作为女士,我们正在等待的WebCore的触摸响应向下的拖累。
10月6日至24日:12:49.950:V /的WebView(23854):singleCursorHandlerTouchEvent -getEditableSupport FASLE
10月6日至24日:12:51.763:V /的WebView(23854):singleCursorHandlerTouchEvent -getEditableSupport FASLE
10月6日至24日:12:51.763:W /的WebView(23854):作为女士,我们正在等待的WebCore的触摸响应向下的拖累。
10月6日至24日:13:21.271:D / DroidGap(23854):暂停应用!
10月6日至24日:13:23.302:D / DroidGap(23854):恢复在App
10月6日至24日:13:24.880:V /的WebView(23854):singleCursorHandlerTouchEvent -getEditableSupport FASLE
10月6日至24日:13:24.880:W /的WebView(23854):作为女士,我们正在等待的WebCore的触摸响应向下的拖累。
10月6日至24日:13:26.552:V /的WebView(23854):singleCursorHandlerTouchEvent -getEditableSupport FASLE
10月6日至24日:13:28.310:V /的WebView(23854):singleCursorHandlerTouchEvent -getEditableSupport FASLE
10月6日至24日:13:28.310:W /的WebView(23854):小姐,我们正在等待的WebCore的触摸响应向下拖

06-24 10:12:38.013: D/DroidGap(23854): Resuming the App 06-24 10:12:38.052: D/DroidGap(23854): Paused the application! 06-24 10:12:43.443: D/DroidGap(23854): Resuming the App 06-24 10:12:47.599: V/webview(23854): singleCursorHandlerTouchEvent -getEditableSupport FASLE 06-24 10:12:47.599: W/webview(23854): Miss a drag as we are waiting for WebCore's response for touch down. 06-24 10:12:49.950: V/webview(23854): singleCursorHandlerTouchEvent -getEditableSupport FASLE 06-24 10:12:51.763: V/webview(23854): singleCursorHandlerTouchEvent -getEditableSupport FASLE 06-24 10:12:51.763: W/webview(23854): Miss a drag as we are waiting for WebCore's response for touch down. 06-24 10:13:21.271: D/DroidGap(23854): Paused the application! 06-24 10:13:23.302: D/DroidGap(23854): Resuming the App 06-24 10:13:24.880: V/webview(23854): singleCursorHandlerTouchEvent -getEditableSupport FASLE 06-24 10:13:24.880: W/webview(23854): Miss a drag as we are waiting for WebCore's response for touch down. 06-24 10:13:26.552: V/webview(23854): singleCursorHandlerTouchEvent -getEditableSupport FASLE 06-24 10:13:28.310: V/webview(23854): singleCursorHandlerTouchEvent -getEditableSupport FASLE 06-24 10:13:28.310: W/webview(23854): Miss a drag as we are waiting for WebCore's response for touch down.

请,我能做些什么呢?
谢谢

please, what can i do ? Thank you,

推荐答案

我通过听'touchstart事件,preventingDefault修复了这个问题。

I fixed this issue by listening to 'touchstart' event, and preventingDefault.

$('.element').on('touchstart', function(ev) {
   ev.preventDefault();
});

问题,但是,它也取消所有滚动事件是否有任何在'.element'元素。为了解决这个问题,我不得不使用iScroll组件的元素。

The problem, though, it also cancel all the scroll events if there is any in the '.element' element. In order to solve that, I had to use the iScroll component on the element.

这篇关于PhoneGap的+安卓触摸事件错误singleCursorHandlerTouchEvent -getEditableSupport假的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆