。但是,您需要设置 touch-events 命令行开关将其启用。我的理解是,该开关作为 Chromium命令行开关。You need to ensure you're receiving touch events in the OS from the touchscreen. I haven't tested with Pi/Linux, so I'm not sure if those handle touch events natively. I know that OSX, for one, requires a third-party driver like [UDPP by Touch-Base.Once the OS is handling touch events, those are piped through to Blink via the Electron wrapper. However, you need to set the touch-events command-line switch to enable it. My understanding is that that switch is passed through as a Chromium commandline switch.我在此线程,虽然不是很多,但仍然无法在OSX上正常工作建立。 Electron的文档非常稀疏... touch-events 开关甚至未在其 CLI文档。希望这会有所帮助。I found more info on this thread, though not very much, and still haven't gotten things working on my OSX setup. Electron's documentation is very sparse...the touch-events switch isn't even listed in their CLI docs. Hope this helps. 这篇关于电子为触摸屏启用触摸事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-06 21:25
查看更多