射击事件的模糊性 - 表面装置 [英] Ambiguity in Firing Events - On Surface Device

查看:80
本文介绍了射击事件的模糊性 - 表面装置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个ScatterViewItem,它包含一个图像,一个网格(默认情况下Visibility为false)和一个SurfaceButton。单击此按钮,网格将变为可见。


同样的ScatterViewItem也应该支持我编写了PreviewTouchMove的拖放功能。


在Simulator上一切正常。


但是当我在Surface设备上执行代码时,Surface触摸非常敏感,有时它会将SurfaceButton点击作为PreviewTouchMove。 (取决于用户触摸按钮的方式)。


现在,我的查询是......有没有可能我可以最大限度地减少这种歧义。我的意思是,当我触摸SurfaceButton时,PreviewTouchMove永远不应该触发。即使有其他方法可以避免这种歧义,它也会非常有用。


谢谢,


Sai Kishore。

解决方案

Hi Sai,


可能发生的事情是你得到了"幻影触摸"在Microsoft Surface硬件上(我假设您的目标是针对Microsoft Surface的三星SUR40)。


幻影触摸是系统报告的虚假联系人 - 通常是由于严峻的闪电条件。 您可能会看到触摸可视化在其他地方触发,而不是您实际触摸的位置。是这样吗?


如果是这种情况,您可以:


1。调整闪电条件,以便最大限度地减少硬件的错误识别。


2。使检测更加严格。 - 就像Roy在
http中提议的那样://social.msdn.microsoft.com/Forums/en-US/surfaceappdevelopment/thread/dcda428e-2585-4668-83d6-d9d531e75df5
(即只在系统返回触摸是实际手指时执行某些操作)


我希望这很有帮助,


Luis Cabrera




Hi,

I have a ScatterViewItem which contains an image, a grid (by default Visibility is false) and a SurfaceButton. On Click of this button, the grid will be made visible.

The same ScatterViewItem should also support Drag and Drop feature for which I have coded PreviewTouchMove.

Everything is working fine on Simulator.

But when I executed the code on Surface device, Surface touch is so sensitive that sometimes it is taking SurfaceButton click as PreviewTouchMove. (of coure, it depends on the way the user touches the button).

Now, my query is... is there any Possibility that I can minimise this ambiguity. I mean, when I touch SurfaceButton, PreviewTouchMove should never fire. It will be really helpful even if there are other ways to avoid such ambiguities.

Thanks,

Sai Kishore.

解决方案

Hi Sai,

What is probably happening is that you are getting "phantom touches" on the Microsoft Surface hardware (I am assuming you are targeting Samsung SUR40 for Microsoft Surface).

Phantom touches are false contacts reported by the system -- usually due to tough lightning conditions.  You could potentially see touch visualizations being triggered in other places than the one where you are actually touching. Is that the case?

If that's the case, you could either:

1. Adjust the lightning conditions so that you minimize false recognitions by the hardware.

2. Make the detection a bit more restringent. -- just like Roy proposes in http://social.msdn.microsoft.com/Forums/en-US/surfaceappdevelopment/thread/dcda428e-2585-4668-83d6-d9d531e75df5 (i.e. only do something when the system returns that the touch is an actual finger)

I hope this is helpful,

Luis Cabrera


这篇关于射击事件的模糊性 - 表面装置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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