操作和触摸事件不会触发,但鼠标事件会触发?
我有一台三星 LD220Z 多点触控显示器,当我尝试一些 WPF 和触摸功能时,触摸事件不会触发。然而,鼠标按下事件似乎正在触发。
这是否意味着我必须考虑到并非所有触摸屏的行为都相同,以及如何在屏幕上获取触摸输入?我尝试过微软发布的Windows 7 Touch pack。多点触控功能似乎在那里起作用。
关于如何进行此操作有什么建议吗?
I have a Samsung LD220Z multi touch monitor, and when I'm experimenting with some WPF and touch features the touch events arent firing. The mouse down event seems to be firing however.
Does this mean that I have to take into account that not all touch screen behave the same, and how do I get the touch inputs on my screen? I've tried the Windows 7 Touch pack that microsoft released. And the multi touch features seems to work there.
Any suggestion on how to proceed with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事件 touchstart 有效,但 touchend 无效。您可以使用 onmouseup="SOMEfun()"
甚至三星Galaxy 3也存在触发事件的问题。
添加第一个事件,他们将继续工作,但是
两种情况:
1)首先添加 onmouseup 和 tauchstart 或更好
2)检查移动设备或桌面设备,然后添加适当的事件
你可以使用我的 detectorbrowser 函数,它非常好(给出浏览器类型的名称,如 mobile_chrome_android_tablet 或 firefox_desktop 、 safari_ipad)
使 NOMOBILE 全局化,你可以简单地替换 var NOMOBILE =0;窗口[“NOMOBILE”]=0;
下载浏览器和设备检测器:
检测浏览器和设备以及类
类名称为 DETECTBROWSER()
(在第一行在脚本中)
var BROWSER = new DETECTBROWSER()
检查这个 BROWSER.NAME
这甚至是疯狂的脚本。同时追踪 10 个手指(在 canvas2d 中)
链接:https://github.com/zlatnaspirala/multi-touch-canvas-handler< /a>
1) 的示例
Event touchstart WORKS but touchend not. You can use onmouseup="SOMEfun()"
Even the Samsung Galaxy 3 is a problem with the trigger event.
Add the first event and thay will be working on but
Two scenario :
1)first add onmouseup and than tauchstart or better
2)check mobile or desktop and than add proper events
You can use my detectbrowser function , its very nice (give a name of browser type like mobile_chrome_android_tablet or firefox_desktop , safari_ipad)
Make NOMOBILE global , you can simply replace var NOMOBILE =0; with window["NOMOBILE"]=0;
download browser and device detector :
detect browser and device also class
Class name is DETECTBROWSER()
(on first line in script)
var BROWSER = new DETECTBROWSER()
Check this BROWSER.NAME
This is even crazy't script . Track 10 fingers at same time (in canvas2d)
link : https://github.com/zlatnaspirala/multi-touch-canvas-handler
example for 1)