CodeEditApp / CodeEditApp/CodeEdit
✨ Pinch to increase/decrease font size
- Ngôn ngữ chính
- Swift
- Star
- 23k
- Fork
- 1.2k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### 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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách kiểm tra hành vi của Find Navigator và việc thay đổi kích thước thanh bên của navigator được mô tả trong issue, tập trung vào cách zoom được áp dụng trong khi thực hiện cử chỉ và được commit sau đó. Hãy triển khai xử lý pinch để văn bản vẫn được scale về mặt hiển thị trong khi thực hiện cử chỉ, sau đó reset zoom và reflow ở cỡ chữ tương ứng khi cử chỉ kết thúc; hoàn thành khi văn bản chỉ rewrap sau khi thả ra.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- swift
- Lĩnh vực
- desktop
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100