Android的4.3和PhoneGap的,着水龙头链接水龙头、链接、Android、PhoneGap

2023-09-12 00:54:40 作者:泪染裳

我使用的PhoneGap 2.9对Galaxy Note的3,我有类似Facebook的移动的布局。它有一个导航栏,从左侧滑出。我遇到的问题是,当在导航栏上的按钮超出屏幕的大小和需要滚动,他们无法可挖。也就是说,他们没有履行自己应有的作用,并且抽头/ Click事件不会触发。导航栏仍然响应刷卡,并适当地滚动,虽然。

I am using PhoneGap 2.9 on Galaxy Note 3. I have a layout similar to Facebook mobile's. It has a nav bar that slides out from the left. The issue I am having is that when the the buttons for the nav bar exceed the size of the screen and need to scroll, they are unable to be tapped. That is, they do not perform their expected functions, and the tap/click event does not fire. The nav bar still responds to swiping, and scrolls properly though.

及其几乎一样,如果操作按钮,一个HTML 导航元素的父元素,正接收触摸事件,但某种虚壁的是保持从子元素被窃听。任何指针将AP preciated。

Its almost as if the parent element of the buttons, an HTML nav element, is receiving the touch events, but some sort of imaginary wall is keeping the child elements from being tapped. Any pointers would be appreciated.

编辑:在Eclipse中,我发现,我已经得到了一些输出,我没有得到4.2.1或Android 4.2.2

edit: In eclipse I noticed that i have been getting some output that I did not get with 4.2.1, or Android 4.2.2

WebViewInputDispatcher blockWebkitDraw
WebViewInputDispatcher blockWebkitDraw lockedfalse
webview                blockWebkitViewMessage = false

编辑:我注意到,我的导航栏的最顶端按钮tappable,但只有在其上缘/边境地区

edit: I have noticed that the very top button on my navbar is tappable, but only on its upper edge/border area.

推荐答案

原来,这很容易被旧的CSS解决变换伎俩,似乎治愈所有的机器人的WebView弊病。我只是说这个CSS类的滚动导航栏:

Turns out this was easily solved by the old CSS transform trick that seems to cure all of Androids webview ills. I just added this css class to the scrolling navbar:

.androidpaintfix {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0, 0, 0);
}