mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
In drawRectsImageContent's modern path the snap loop runs midY trimming first, leaving rects[i].maxY == rects[i+1].minY for adjacent line rects. The X-edge snap guard then evaluated rects[i].insetBy(dx: 0.0, dy: 1.0).intersects(rects[i+1]) — but positive dy shrinks the rect, so after the trim the guarded rectangle no longer intersects its neighbor (CGRect.intersects requires positive-area overlap). Flip dy to -1.0 so the temp rect grows and touching neighbors satisfy the guard. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Source | ||
| .gitignore | ||
| .gitmodules | ||
| BUILD | ||