WinJS App中MSGesture事件和图像元素的奇怪问题 [英] Strange Problems with MSGesture Events and Image Elements in WinJS App

查看:68
本文介绍了WinJS App中MSGesture事件和图像元素的奇怪问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新:问题似乎与在"本地计算机"中运行Metro WinJS应用程序隔离模式。在模拟器中滑动图像似乎按预期工作。 IMO仍然有点奇怪。

Update: The problem seems to be isolated to running Metro WinJS apps in "Local Machine" Mode. Swiping over images in the simulator seems to work as expected. Still a bit strange IMO.

我的应用程序允许用户通过向左或向右滑动文章来浏览文章,以导航到上一篇或下一篇文章。

My App allows the user to navigate between articles by flicking them to the left or right to navigate to the previous or next article.

通过创建一个MSGesture对象并使用addPointer将托管文章及其子项的容器元素触发的指针事件中继到MSGesture对象来处理手势。

The gestures are handled by creating an MSGesture object and relaying pointer events fired by the container element hosting the articles an its children to the MSGesture object using addPointer.

只要手势没有点击内容中的图像元素(我显然无法控制),这样就可以正常工作。由于这比显示的更容易显示,这里有一个视频演示了我的问题:

This works fine as long as the gesture does not hit an image element in the content (which I do not control obviously). Since this is easier shown than explained, here's a video demonstrating my problem:

http: //www.youtube.com/watch?v=KjzYF3hqDwI

任何建议都将受到赞赏。

Any suggestions would be appreciated.

weichhold.com

推荐答案

您好Oliver,

您能否提供一份关于您正在做什么的简单复制品进一步调查? 同样,物理触摸设备不起作用,但模拟器有触摸模拟吗?

Can you provide a simple repro of what you are doing for further investigation?  Again, a physical touch device does not work but the simulator with touch emulated does?

-Jeff


这篇关于WinJS App中MSGesture事件和图像元素的奇怪问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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