iPad模拟器和设备的手势识别有什么区别?
我知道在桌面上运行的 iOS 模拟器和在设备上运行的 iOS 模拟器之间存在明显的性能差异。但是,有谁知道这个或其他设置对手势识别/传递有什么不同?
我在重叠的 UIScrollViews 上设置了一些不同的手势(我知道,问题比比皆是),以实现复杂的分页/滚动行为。我单指拖动上下滚动,两指拖动左右分页。我的手势和 UIScrollViews 之间的交互在 iOS 模拟器上是完美的。然而,在设备上,像两根手指拖动这样的事情通常被注册为两个单指事件。大约十分之一的人会正常工作。如果有必要,我可以详细说明滚动视图,但由于它在模拟器上看起来很完美,我怀疑这是模拟器与设备的问题。然而,我没有找到太多关于如何识别和传递手势的信息,并且总是假设类似的东西在两种设备上都是相似的。
通常情况下,我会将手指运动的错误归咎于模拟器触摸点的准确性,但它们并不完全是复杂的手势......
感谢您的所有帮助。
I know there are stark differences in performance between the iOS simulator running on a desktop and the device. However, does anyone know what kind of difference this or other settings has on gesture recognition/passing?
I have a few different gestures setup on overlayed UIScrollViews (I know, problems abound) in order to achieve complex paging/scrolling behaviours. I have single-finger dragging scrolling up and down, and two-finger dragging paging left and right. My gestures and the interaction between the UIScrollViews is flawless on the iOS simulator. However, on the device it seems that things like two-finger drags are usually being registered as two single-finger events instead. About 1 in 10 will work as it should. I can elaborate on the scrollviews if necessary, but as it works seemingly perfect on the simulator I suspect this to be a simulator vs. device problem. However I've not found much information on how gestures are recognized and passed, and always assumed something like that would be similar on both devices.
Normally I'd blame error in my fingers' movement in relation to the exactness of the simulator's touch points, but they're not exactly complex gestures...
Thanks for any and all help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论