We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vConsole Version: 3.14.6
错误内容: 点击vConsole浮窗AS控制台报错:Unable to preventDefault inside passive event listener invocation.,且没有弹出网页控制台
Unable to preventDefault inside passive event listener invocation.
复现步骤: 1.直接注入script标签或下载http://cdn.jsdelivr.net/npm/vconsole@3.14.6/dist/vconsole.min.js到安卓本地并使用evaluateJavascript方法读取js均可; 2.使用loadUrl方法执行new VConsole(); 3.点击出现的VConsole浮窗
script
http://cdn.jsdelivr.net/npm/vconsole@3.14.6/dist/vconsole.min.js
evaluateJavascript
loadUrl
new VConsole()
关键代码:
The text was updated successfully, but these errors were encountered:
Fix(Core): Fix intervention error caused by preventDefault in `Touc…
preventDefault
61cc1f4
…h` events. (issue #546)
我这里本地没有条件验证。根据这个 error 的表现,应该是 touch 事件中使用了 preventDefault() 引起的,因此这里尝试强制使用 passive: false 模式来避免报错。楼主可以试下这个版本。
preventDefault()
passive: false
Sorry, something went wrong.
No branches or pull requests
vConsole Version: 3.14.6
错误内容:
点击vConsole浮窗AS控制台报错:
Unable to preventDefault inside passive event listener invocation.
,且没有弹出网页控制台复现步骤:
1.直接注入
script
标签或下载http://cdn.jsdelivr.net/npm/vconsole@3.14.6/dist/vconsole.min.js
到安卓本地并使用evaluateJavascript
方法读取js均可;2.使用
loadUrl
方法执行new VConsole()
;3.点击出现的VConsole浮窗
关键代码:
The text was updated successfully, but these errors were encountered: