在 Safari、Firefox 和 Chrome 上使用触摸事件代替鼠标事件

发布于 2024-10-08 06:16:24 字数 191 浏览 0 评论 0原文

使用 Safari、Firefox 或 Chrome 导航时,是否有一种方法/插件/扩展可以模拟移动事件(touchstart、touchmove、touchend)而不是普通的鼠标事件?

我正在尝试在 iPad 上测试一些网站。如果有一个 iPad 模拟器桌面软件,那就太好了,但我需要某种 Firebuging。

谢谢! 凯奥图昂!

Is there a way/addon/extension that simulates the mobile events (touchstart, touchmove, touchend) instead of the normal mouseevents when navigating with Safari, Firefox or Chrome?

I'm trying to test some websites on iPad. If there is a iPad Emulator desktop software, would be great also, but I need some kind of Firebuging.

Thanks!
CaioToOn!

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

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

发布评论

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

评论(4

挽手叙旧 2024-10-15 06:16:24

您是否意识到安装 Xcode 时实际上有一个 iPad 模拟器? (这是免费的,请在 developer.apple.com 上注册。)

You realize there is in fact an iPad simulator, which you get when you install Xcode? (Which is free, sign up at developer.apple.com.)

爱格式化 2024-10-15 06:16:24

您应该看看 汤姆·罗宾逊的虚拟光桌。它包括一个小型但可用的 JavaScript 移动事件模拟器。

You should have a look at the tom robinson's virtual light table. It includes a small but working mobile events emulator in javascript.

浮光之海 2024-10-15 06:16:24

您可以直接在浏览器中测试触摸输入。
在 Firefox 或 Chrome 中,按 Ctrl+Shift+m,这将为您提供网页的移动视图。在那里您还可以检查缩放是否正确。

有一个按钮,可以让您模拟触摸事件而不是鼠标事件。

如需了解更多信息,请参阅 Chrome 设备模式

You can test touch input directly in your browser.
In Firefox or Chrome press Ctrl+Shift+m, which gives you a mobile view of your webpage. There you can also check if the scaling is correct.

There is a button, that lets you simulate touch events instead of mouse events.

For further information look at the chrome device mode.

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