Enable touch events in node webkit

可紊 提交于 2019-12-13 13:45:50

问题


Im using a custom touchscreen and I want to activate by default the touch event in node-webkit, is that possible?

This one tell node-webkit how to open the app and control how the browser behaves.

Update:

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?

Thank you.


回答1:


Add "chromium-args": "--touch-events", to package.json.

Tested on Ubuntu 14.04 and nw 0.13.04.

More information Manifest format - chromium-args



来源:https://stackoverflow.com/questions/22916627/enable-touch-events-in-node-webkit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!