Android的fastclick问题问题、Android、fastclick

由网友(雨天是放聲哭泣的時間)分享简介:我有一个可点击的元素两个不同的页面位于相同的位置。在第一页上有菜单按钮,如果用户点击它,这将打开和在第二个,在完全相同的位置有一个背按钮,将用户重定向到第一页。I have two different pages with a clickable elementlocated on the same positio...

我有一个可点击的元素两个不同的页面位于相同的位置。在第一页上有菜单按钮,如果用户点击它,这将打开和在第二个,在完全相同的位置有一个背按钮,将用户重定向到第一页。

I have two different pages with a clickable element located on the same position. On the first page there is a menu button which will open up if a user clicks on it and on the second one, in the exact same position there is a back button which will redirect the user to the first page.

现在的问题;每当用户点击后退按钮在第二页上,他将被重定向到第一页,其目的,但它也将打开时自动菜单,它不应该这样做。

Now to the problem; whenever a user clicks the back button on the second page he will be redirected to the first page which is intended, but it will also open up the menu automatically which it shouldn't do.

我我在哪里利用建设有一个的PhoneGap应用为了在fastclick库消除300ms的点击延迟。如果不使用fastclick库,该应用程序工作正常但它不会感到敏感。

I am building an app with PhoneGap where i am utilizing the fastclick library in order to eliminate the 300ms click delay. If the fastclick library isn't used, the application works as expected but then it wont feel as responsive.

该fastclick库的作品完美的iOS环境下。

The fastclick library works perfectly under iOS environment.

这可能是造成这种不良影响?

What could be causing this undesirable effect?

推荐答案

我认为这个问题是更多的是因为对加载到点击鼠标事件,而不是一个触摸事件,您遇到这个问题。你可以尝试装上,而不是触摸事件的事件处理?

I think the problem is more because the click on loaded on a mouse event and not a touch event that you are experiencing this issue. Can you try loading the event handler on a touch event instead ?

阅读全文

相关推荐

最新文章