
苹果 macOS 27 巧妙解决窗口缩放 Bug:圆角动态过渡匹配新款 MacBook Pro 屏幕物理圆角
IT之家 11 月 25 日消息,不少人应该还有印象:macOS 26(Tahoe)界面出过一个体验 Bug,拖拽窗口边角调整大小经常失灵。现在这个问题背后的原因终于清楚了,苹果在 macOS 27(Golden Gate)里用了一套巧妙有趣的方案解决了它。
IT之家注意到,之前很多用户都发现,在 macOS Tahoe 里抓窗口边角缩放很容易失败。开发者诺伯特 · 赫格(Norbert Heger)找到了根源:苹果修改了窗口圆角半径,却没有同步调整可拖拽点击区域。
窗口边角的可抓取区域是固定 19×19 像素范围。如果窗口没有圆角,这块区域 62% 都落在窗口内部,可以正常识别点击;但 Tahoe 版本圆角变得很大,这块 19×19 的区域里大约 75% 都跑到窗口圆角之外,点击自然无效。
当时大家都觉得这是苹果一次莫名其妙的失误,苹果后续也把圆角半径改回去了。而 Macworld 的迈克尔 · 西蒙挖出了当初调整圆角的真实目的:新款搭载 PROLED XDR 屏幕的 MacBook Pro,屏幕本身的物理圆角,刚好和 macOS 26 那套圆角半径对齐。
原本的设计思路是:把窗口挪到屏幕角落时,窗口圆角能和屏幕圆角严丝合缝贴合。但苹果把圆角改回之后,这个对齐效果就消失了。于是苹果做了一套很精巧的 UI 过渡方案。
macOS 27 默认窗口圆角为 20pt;当窗口靠近屏幕底部边角时,圆角会平缓、无感地逐步变大,最终匹配屏幕更大的物理圆角(目测就是之前 macOS 26 的那套尺寸,暂无法确认精确数值)。这个过渡非常顺滑,反复观察都很难察觉到变化,但贴到屏幕角上时,圆角刚好严丝合缝。
本文来源:https://www.ithome.com/1/032/494.htm
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

Apple's macOS 27 cleverly solves the window resizing bug: a dynamic corner-radius transition matches the physical rounded corners of the new MacBook Pro's screen
IT Home reported on November 25 that many people probably still remember: the macOS 26 (Tahoe) interface had a user-experience bug in which dragging a window's corner to resize it often failed. Now the reason behind the problem is finally clear, and Apple has solved it in macOS 27 (Golden Gate) with a clever and interesting approach.
IT Home noted that many users previously found that grabbing a window corner to resize in macOS Tahoe tended to fail. Developer Norbert Heger found the root cause: Apple changed the window's corner radius but did not adjust the draggable click area accordingly.
The grabbable area at a window's corner is a fixed 19x19 pixel region. If the window has no rounded corners, 62% of this area falls inside the window, so clicks are recognized normally; but in the Tahoe version the corners became very large, and about 75% of this 19x19 area ends up outside the window's rounded corner, so clicks naturally fail.
At the time everyone felt this was a baffling mistake by Apple, and Apple later changed the corner radius back. But Michael Simon of Macworld dug up the real purpose behind the original corner change: the new MacBook Pro with a PROLED XDR display has physical rounded corners on the screen itself that happen to align exactly with the macOS 26 set of corner radii.
The original design idea was that when you move a window to the corner of the screen, the window's rounded corners would fit perfectly against the screen's rounded corners. But after Apple changed the corners back, this alignment effect disappeared. So Apple devised a very ingenious UI transition scheme.
macOS 27 has a default window corner radius of 20pt; when a window approaches the bottom corner of the screen, the radius gradually and imperceptibly increases, eventually matching the screen's larger physical corner radius (visually it appears to be the same size as the earlier macOS 26 set, though the exact value cannot yet be confirmed). This transition is very smooth — even with repeated observation it is hard to notice the change — but when the window is snapped to the screen corner, the radius fits perfectly.
本文来源:https://www.ithome.com/1/032/494.htm
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。