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

style(image-viewer): adjust the default zoom ratio of the image #4583

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

RSS1102
Copy link
Contributor

@RSS1102 RSS1102 commented Sep 20, 2024

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

📝 更新日志

  • style(ImageViewer): 优化图片查看器默认的缩放比例,减少滚轮缩放效果的闪烁感

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

Copy link
Contributor

github-actions bot commented Sep 20, 2024

完成

@uyarn
Copy link
Collaborator

uyarn commented Sep 22, 2024

触摸板下看起来没有很大变化 还是多次触发了onwheel 再加节流处理试试呢

尝试在防抖过程中,阻止默认事件传播失败,后通过禁止父元素`overflow`来防止事件传播影响到父页面。
@uyarn uyarn merged commit f3b35b4 into Tencent:develop Sep 23, 2024
7 checks passed
@github-actions github-actions bot mentioned this pull request Sep 27, 2024
16 tasks
@RSS1102 RSS1102 deleted the style/image-viewer branch October 10, 2024 07:31
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