Recording stops automatically when using macOS 3-finger swipe up (Mission Control) gesture during capture
Problem
Original text (verbatim, user's original report in Chinese): 「如果針對safari的某個頁面錄影的時候,如果使用蘋果的三只手指頭上滑(就是會到一堆app排列那個)當場錄影會失效,具體是錄影會自動中止」
While recording a Safari web page with Recordly, if the user performs the macOS built-in 3-finger swipe-up trackpad gesture (which triggers Mission Control / App Exposé), the recording auto-stops immediately.
Type
bug
Steps to Reproduce
- Open Recordly and start recording a Safari browser window/page
- During recording, perform a 3-finger swipe up on the trackpad (macOS gesture that opens Mission Control / App Exposé)
- Observe recording state
Expected
Recording should continue uninterrupted regardless of macOS window-switching gestures used mid-recording.
Actual
The recording stops automatically (auto-terminates) as soon as the gesture is triggered.
Environment
- Recordly version: 1.3.3 (bundle id
dev.recordly.app) - macOS trackpad gesture: 3-finger swipe up (Mission Control / App Exposé)
- App captured while recording: Safari
- macOS version: macOS 27.0 (confirmed by reporter)
Clarity Surface (idd-clarify run 2026-08-20T15:54:56Z)
| Type | Source | Question for you | Status |
|---|---|---|---|
| ambiguity | "the recording auto-stops immediately" / "錄影會自動中止" | 中止後,已錄到的片段有被保存成一段不完整的影片,還是整個沒有輸出檔案? | resolved @ 2026-08-20T23:05:46Z (reason: 使用者確認:中止時已錄到的內容有保存成影片檔(可以找到,只是不完整),不是整個遺失沒有輸出) |
| missing-context | "Environment - macOS trackpad gesture" | 這個問題是在哪個 macOS 版本上發生的?不同版本對手勢事件的處理可能不同。 | resolved @ 2026-08-20T23:06:02Z (reason: 使用者確認:macOS 27(已用 sw_vers 核對本機版本 27.0,與回報一致)) |
I looked into this. The stop comes from the window check in startWindowValidationIfNeeded in ScreenCaptureKitRecorder.swift. Every 0.5s it calls SCShareableContent.excludingDesktopWindows(false, onScreenWindowsOnly: true). If the selected window isn't in that list, it finalizes the recording and exits, so a partial file is saved.
I tested on macOS 27.0.1. Mission Control and App Exposé didn't remove the window from the list. Switching to another Space did: the window was still in the full list but had isOnScreen = false, which triggers the stop. So the swipe probably moved to another Space, or Safari was in full screen. @kiki830621, does that match what you saw?
Window mode records the whole display and crops it, so just ignoring the check would record whatever is on the other Space. My proposed fix:
- Stop only when the window is gone from the full window list (closed), not when it's only off-screen.
- While it's off-screen, repeat the last cropped frame and keep recording audio.
- Go back to live frames when the window is visible again.
Does that behavior work for you? If so, I can open a PR.
Thanks for tracing this to the window check.
does that match what you saw?
I can't say for sure. I filed this in August and don't remember whether Safari was in full screen or whether I ended up on another Space after the swipe.
I can add a check on my current setup, macOS 27.2 with Recordly 1.4.0. I ran a small probe that calls SCShareableContent.excludingDesktopWindows(false, onScreenWindowsOnly: true), the same query the window check uses, about every 0.08 s for two minutes. With a normal Safari window (not full screen) in front, I swiped up into Mission Control and back. The Safari window was in the list in all 1,551 polls. So on 27.2, Mission Control alone does not trigger the stop. That matches what you saw on 27.0.1 and points to a Space change or full screen, as you suggested.
One version note: I was on 1.3.3 when I filed this, and window recording there used SCContentFilter(desktopIndependentWindow:). The display-and-crop path came in 1.4.0. Both versions have the same 0.5 s check, so the cause is the same.
Does that behavior work for you? If so, I can open a PR.
Yes, that works for me: stop only when the window is closed, freeze the last frame and keep recording audio while it is off-screen, and go back to live frames when it is visible again. I think a minimized window also counts as off-screen, and freezing seems right there too. Please go ahead with the PR.