在节点Webkit中启用触摸事件 [英] Enable touch events in node webkit
问题描述
我正在使用自定义触摸屏,并且我想默认激活 node-webkit ,那有可能吗?
Im using a custom touchscreen and I want to activate by default the touch event in node-webkit, is that possible?
这告诉node-webkit如何打开应用程序并控制浏览器的行为.
This one tell node-webkit how to open the app and control how the browser behaves.
更新:
我正在使用像OS这样的Ubuntu,触摸事件的所有功能都像使用鼠标一样工作(例如,您需要使用滚动条向下滚动.).问题是如何告诉操作系统需要使用移动触摸事件?
I'm using Ubuntu like OS, all functionality of touch events work like you are using a mouse(For example you need to scroll down with the scroll bar..). The question is how can I tell my OS that I need to use the mobile touch events?
谢谢.
推荐答案
将"chromium-args": "--touch-events",
添加到package.json.
Add "chromium-args": "--touch-events",
to package.json.
在Ubuntu 14.04和nw 0.13.04上进行了测试.
Tested on Ubuntu 14.04 and nw 0.13.04.
更多信息清单格式-铬args
这篇关于在节点Webkit中启用触摸事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!