Skip to content
New issue

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

Chrome的api弃用警告 #1587

Closed
lainbo opened this issue Dec 23, 2022 · 2 comments
Closed

Chrome的api弃用警告 #1587

lainbo opened this issue Dec 23, 2022 · 2 comments
Milestone

Comments

@lainbo
Copy link

lainbo commented Dec 23, 2022

基本信息

划词翻译版本:9.1.1
浏览器版本:Chrome 108.0.5359.125
操作系统:Windows 11 22H2

重现问题的步骤

  1. 打开控制台即可发现警告
    image
    image

预期行为

预期不要出现警告

补充信息

  1. Chrome 109 预计在 2023-01-10 正式发布,届时会全面禁用 Event.path
  2. Event.path只有在被运行到时,才会在控制台报警告

为了避免届时出现bug,建议换用新的写法

@lmk123 lmk123 removed the 待确认 label Dec 23, 2022
@lmk123 lmk123 added this to the v9.3.0 milestone Dec 23, 2022
@lmk123
Copy link
Member

lmk123 commented Dec 23, 2022

不会出现 bug,因为我做了检测,当没有 event.path 时会改为使用 event.composedPath()

不过你的提议很好,我应该优先用 event.composedPath()

@lmk123 lmk123 closed this as completed Dec 25, 2022
@lmk123
Copy link
Member

lmk123 commented Jan 1, 2023

v9.2.2 中我已经改为了优先使用 composedPath,但控制台还是会有这个警告信息,这是由 interactjs 引起的,见 taye/interact.js#976

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants