CodeEditApp / CodeEditApp/CodeEdit

✨ Pinch to increase/decrease font size

オープン
#1,210 コメント 1 件 リアクション 0 件 担当者 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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。