仿真触摸屏选项不存在,设备仿真不提供触摸屏响应 [英] Emulate Touch Screen option absent, Device Emulation provides no touch screen response
问题描述
我目前正在手机网站上工作,并且我刷新了页面,Chrome意外退出,此后所有触摸屏模拟都不存在和/或失败。
Chrome版本: 36.0.1985.125 m
,
操作系统: Windows 7 Ultimate SP1
谷歌浏览器突然意外停止正常模拟设备。所有的触摸屏功能已被禁用,显然被删除。当我模拟设备时,传感器
框未能被检查,并且在检查时不显示任何'仿真触摸屏'选项。
我已经尝试了以下所有内容:
- 卸载/重新安装Chrome并删除所有个人设置,包括卸载所有扩展,恢复所有默认值等。
- 重新启动计算机
- 运行防病毒软件
- 编辑:安装了Chrome Canary,它产生了完全相同的问题 我可能需要添加相关细节。
解决方案对此抱歉。我们修改了Chrome 36中的触摸模拟,使其更加准确(与Chrome Android中真正发生的事情分享代码): https://plus.sandbox.google.com/+RickByers/posts/CBCmhVttj5C 。在这个过程中,当真正的触摸支持出现时,我们最终禁用了触摸模拟(当时我们认为这没什么大不了的,因为如果你有一个真正的触摸屏,为什么要用鼠标来伪造一个?)。但是有些Windows电脑报告说他们有触摸屏,但事实上他们并不真的(例如,Visual Studio安装了我认为的触摸屏模拟器)。
我们是通过 http://crbug.com/395531 解决这个问题 - 希望很快就会有Chrome Canary的构建,可以重新使这些触摸仿真成为可能在此期间,您大多可以通过在chrome:// flags /#touch-events禁用Chrome对内置触摸屏的支持来解决该问题。确保在Chrome更新后将其设置为已启用以解决问题。在禁用的情况下,触摸模拟的一些小方面(例如DOM0 ontouchstart = handlers)将无法正常工作。
I am working on a mobile website at the moment and I refreshed the page, Chrome quit unexpectedly, and since then all touch screen emulation is absent and/or failing.
Chrome Version:
36.0.1985.125 m
, OS:Windows 7 Ultimate SP1
Google Chrome suddenly and unexpectedly stopped emulating devices properly. All touch screen functionality has been disabled and apparently removed. When I emulate a device, the
Sensors
box fails to be checked and upon inspection, does not show any 'Emulate Touch Screen' option.I have tried the following, all in conjunction:
- Uninstalling/Reinstalling Chrome and deleting all personal settings, including uninstalling all extensions, restoring all defaults, etc.
- Restarting the computer
- Running anti-virus software
- EDIT: Installed Chrome Canary which produced the exact same problem
Please let me know if there are any other relevant details that I might need to add.
解决方案Sorry about this. We overhauled the touch emulation in Chrome 36 to be much more accurate (sharing code with what really happens in Chrome Android): https://plus.sandbox.google.com/+RickByers/posts/CBCmhVttj5C. In the process we ended up disabling touch emulation when real touch support was present (at the time we thought this was no big deal because if you've got a real touchscreen why would you want to fake one with mouse?). But some Windows PCs report that they have a touchscreen when in fact they don't really (Eg. Visual Studio installs a touch screen emulator I believe).
We're fixing this at http://crbug.com/395531 - hopefully there will be a Chrome Canary build soon that re-enables touch emulation in these cases.
In the meantime you can mostly work around the issue by disabling Chrome's support for built-in touchscreens at chrome://flags/#touch-events. Make sure you set this back to 'Enabled' after Chrome is updated to fix the issue. With this disabled, some minor aspects of touch emulation (eg. DOM0 ontouchstart= handlers) will not work properly.
这篇关于仿真触摸屏选项不存在,设备仿真不提供触摸屏响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!