CodeEditApp / CodeEditApp/CodeEdit

✨ Pinch to increase/decrease font size

未關閉
#1,210 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Swift
星號
23k
分支
1.2k
PR 合併指標
30 天內沒有已合併 PR

描述

### Description

We can do pinch-to-zoom, but it has to be smooth.

Perhaps we pinch and initially zoom during the gesture (not change the font size), then after the gesture ends, reset the zoom and adjust the font size to the same visual size when it was previously zoomed which would wrap the text as expected.

That would appear to the user like this:
1. Gesture (Pinch to zoom) starts
2. Gesture ends
3. Text immediately reflows to wrap

What actually happens:
1. Gesture (pinch-to-zoom) starts
2. Text view zoomed - remaining anchored to the left
3. Gesture ends
4. Zoom amount multiplier captured
5. Text view zoom restored
6. Font size is multiplied by the zoom amount multiplier previously captured
7. This gives the appearance of the text reflowing to wrap

This behavior can be seen when looking at the Find Navigator, doing a search, and resizing the navigator sidebar. Notice it doesn't reflow the text until releasing the mouse to commit the size.

貢獻指南

開啟貢獻指南

研究方向

Start by examining the Find Navigator and navigator sidebar resize behavior described in the issue, focusing on how zooming is applied during the gesture and committed afterward. Implement pinch handling so the text remains visually scaled during the gesture, then resets zoom and reflows at the corresponding font size when the gesture ends; done means the text rewraps only after release.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
swift
領域
desktop
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。