macOS13.2 新 bug 发现

2023-01-28 09:18:15 +08:00
 lEONiNv2

预览打开的图片,触摸板二指缩放是不是失灵。 M2 激活后直接升级的,应该不存在旧系统数据 /app 影响

2313 次点击
所在节点    macOS
9 条回复
Cat7373
2023-01-28 09:21:14 +08:00
这是陈年老 bug 了,好多年了,解决方案很简单,到设置里关掉双指缩放,然后再打开,就是过一段时间还会失效
Cat7373
2023-01-28 09:23:09 +08:00
使用快捷指令执行以下代码,可以自动修复(其实就是帮你做上面这堆操作,你只需要点一下):

```sh
#!/bin/bash

osascript <<EOD
use AppleScript version "2.8"
use framework "Foundation"

tell application "System Settings"
if it is running then
quit
delay 0.6
end if
end tell

current application's NSWorkspace's sharedWorkspace()'s openURL:(current application's NSURL's URLWithString:"x-apple.systempreferences:com.apple.preference.trackpad")

tell application "System Settings"
activate
delay 0.8
end tell

tell application "System Events"
tell tab group 1 of group 1 of group 2 of splitter group 1 of group 1 of window of application process "System Settings"
click radio button 2
delay 0.6
end tell

tell group 1 of scroll area 1 of group of group 2 of splitter group 1 of group 1 of window of application process "System Settings"
click checkbox "Zoom in or out"
delay 0.5
click checkbox "Zoom in or out"
delay 0.1
end tell
end tell

quit application "System Settings"
EOD
```
Cat7373
2023-01-28 09:25:02 +08:00
hmmm 似乎 v2 把缩进搞没了,用这个吧: https://gist.github.com/Cat7373/5f2997d1a7278e480d2b7d12b969545b
haroldji
2023-01-28 09:27:57 +08:00
Monterey 下触摸板二指缩放也有时失灵,盒盖睡眠再打开下,或者直接按下电源键再解锁,就恢复了
KevinDo2
2023-01-28 10:20:23 +08:00
我去 怪不得
WonderUniverse
2023-01-28 11:44:01 +08:00
早就有了
GabrielleBellamy
2023-01-28 17:19:56 +08:00
推荐一下这个: https://github.com/danqing/Pinch
之前大佬做了一个软件修复这个 bug 。
(目前只在 13 上)
Cat7373
2023-01-29 09:41:11 +08:00
@GabrielleBellamy #7 我这里测试下来,kill Dock 和 kill Finder 几乎从来都不会解决问题,所以脚本上干脆省略了这部分
ihwbunny
2023-02-01 13:25:00 +08:00
我的 2012 的黑 Ventura 13.2 双指都没遇到缩放问题的

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/910957

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX