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

zh-CN: create Glossary/Sticky_activation #22214

Merged
merged 3 commits into from
Jul 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions files/zh-cn/glossary/sticky_activation/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: 粘性激活
slug: Glossary/Sticky_activation
l10n:
sourceCommit: ada5fa5ef15eadd44b549ecf906423b4a2092f34
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
---

{{GlossarySidebar}}

**粘性激活**(或“粘性用户激活”)是一种表示用户按下了按钮、移动了鼠标、使用了菜单或执行了其他用户交互窗口状态。

如果用户当前正在与页面交互或自页面加载以来完成了触摸、指针或键盘交互,则该页面被视为“用户已激活”。如果某个页面被设置了黏性激活状态,则在会话期间不会该状态被重置(与{{Glossary("Transient activation", "短暂激活")}}不同)。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我们已有的翻译是“瞬态激活”,因为这个激活状态仅在事件处理器内可用。

Suggested change
如果用户当前正在与页面交互或自页面加载以来完成了触摸、指针或键盘交互,则该页面被视为“用户已激活”。如果某个页面被设置了黏性激活状态,则在会话期间不会该状态被重置(与{{Glossary("Transient activation", "短暂激活")}}不同)。
如果用户当前正在与页面交互或自页面加载以来完成了触摸、指针或键盘交互,则该页面被视为“用户已激活”。如果某个页面被设置了黏性激活状态,则在会话期间不会该状态被重置(与{{Glossary("Transient activation", "瞬态激活")}}不同)。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗯,确实“瞬态”这个词比“短暂”更能体现一些

翻译的时候搜了transient activation,我当时只看到了一个“短暂激活”(也只出现了一次)就直接拿来用了
Uploading image.png…


参见[由用户激活控制的功能](/zh-CN/docs/Web/Security/User_activation)以查看需要*粘性激活*的 API 示例。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
参见[由用户激活控制的功能](/zh-CN/docs/Web/Security/User_activation)以查看需要*粘性激活*的 API 示例。
参见[由用户激活控制的特性](/zh-CN/docs/Web/Security/User_activation)以查看需要*粘性激活*的 API 示例。


参见 {{domxref("UserActivation.hasBeenActive")}} 属性以通过编程方式获取当前窗口的粘性激活状态。

## 参见

- [HTML 动态标准 > 黏性激活](https://html.spec.whatwg.org/multipage/interaction.html#sticky-activation)
- {{Glossary("Transient activation", "短暂激活")}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- {{Glossary("Transient activation", "短暂激活")}}
- {{Glossary("Transient activation", "瞬态激活")}}

- {{domxref("UserActivation.hasBeenActive")}}
Loading