开发网页内容时如何在 WebOS 上为 webkit 实现简单的 javascript 触摸事件

发布于 2024-08-25 10:04:38 字数 97 浏览 2 评论 0原文

有没有人在尝试为 webkit 实现简单的 js 触摸事件时遇到困难并找到解决方案?

基本上我的触摸开始、触摸移动和触摸结束事件没有被检测到。

谢谢

did anyone come across difficulties while trying to implement simple js touch events for webkit and found a solution for it ?

Basically my touch start, touch move, and touch end events are not being detected.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

把昨日还给我 2024-09-01 10:04:38

Palm webOS 的 webkit 目前还没有实现触摸事件。相反,系统发送手势事件。这些没有很好的文档记录,但它们在属于 Palm webOS SDK 一部分的 mojomatters 示例代码中使用。查看gesture-assistant.js 源文件中的gestureStart、gestureChange 和gestureEnd。

Palm webOS's webkit doesn't implement touch events at this time. Instead, the system sends gesture events. These aren't super well documented, but they are used in the mojomatters sample code that's part of the Palm webOS SDK. Look at the gesture-assistant.js source file for gestureStart, gestureChange, and gestureEnd.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文