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

fix: slider #732

Merged
merged 1 commit into from
May 18, 2023
Merged

fix: slider #732

merged 1 commit into from
May 18, 2023

Conversation

jc9702507
Copy link
Collaborator

  • slider不影响没有使用情况下的屏幕滑动

@github-actions
Copy link
Contributor

github-actions bot commented May 18, 2023

🎊 PR Preview 8ea82f9 has been successfully built and deployed to https://ant-design-ant-design-mini-preview-pr-732.surge.sh

🕐 Build time: 1103.252s

🤖 By surge-preview

@@ -51,6 +50,7 @@

&-handler {
position: absolute;
touch-action: none;
left: 0;
transform: translate(-50%, -50%);
top: 3*@rpx;
Copy link
Contributor

Choose a reason for hiding this comment

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

这是一小段 CSS 代码。代码通过 "@@" 表示代码发生变化的地方。在第四行,"touch-action: none" 被移除了,可能是因为该属性被滥用而导致性能问题。在第六行,"&-track" 中的样式被更改,将 "user-select" 设置为 "none" 可以禁止用户选择轨道,提高交互体验。在第九行,"&-handler" 中添加了 "touch-action: none" 属性以防止手势触摸冲突,同时可以提高性能。建议在审查代码后进行测试以确保所做的更改不会影响应用的其他部分。

@wyj580231 wyj580231 merged commit 69c472d into master May 18, 2023
@github-actions github-actions bot mentioned this pull request May 18, 2023
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

Successfully merging this pull request may close these issues.

2 participants