UITapGestureRecognizer 具有多次触摸问题?
我想知道是否有其他人在设置具有多次触摸(而不是多次点击)的 UITapGestureRecognizer 时遇到问题。如果我将触摸次数设置为 1,一切都会很好。如果我将触摸次数设置为 2,则大约 80% 的时间会触发识别器。如果我将触摸次数设置为 3,那么大约 10% 的时间会触发它。我将识别器附加到 UIWebView。我什至尝试过使用delaysTouchesBegan/End 来看看是否有帮助。有人对如何使 2 次和 3 次触摸更可靠地工作有任何建议吗?
I'm wondering if anybody else has had problems with setting up a UITapGestureRecognizer with multiple touches (NOT multiple taps). If I set the number of touches to 1 everything works pretty well. If I set the number of touches to 2 the recognizer is triggered about 80% of the time. If I set the number of touches to 3 then it's triggered about 10% of the time. I'm attaching the recognizer to a UIWebView. I've even tried messing around with delaysTouchesBegan/End to see if that helps things. Anyone have any suggestions on how to make 2 and 3 touches work more reliably?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
复制自上面的评论:
Copied from the comment above: