[0129] 优化 PDF 阅读器缩放策略#3373
Merged
Merged
Conversation
- 用离散缩放级别列表(25% ~ 800%,共12级)替代固定10%步进 - 放大/缩小按钮跳转到列表中的上一级/下一级 - Ctrl+滚轮改为连续缩放公式 zoom *= (1 + delta/500) - 扩大缩放范围至 12% ~ 800% - 工具栏新增 +/- 按钮 - 新增快捷键:Ctrl++/Ctrl+- 放大缩小,Ctrl+0 重置100% Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
$(cat <<EOF
改动摘要
Ctrl + 滚轮从固定 ±10% 改为zoom *= (1 + delta / 500),缩放更平滑MIN_ZOOM10% → 12%,MAX_ZOOM500% → 800%Ctrl++/Ctrl+=放大、Ctrl+-缩小、Ctrl+0重置 100%测试
xmake build qt_pdf_reader_widget_test编译通过xmake run qt_pdf_reader_widget_test10 passed, 0 failed🤖 Generated with Claude Code
EOF
)